Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
figures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
poquet
millian
figures
Commits
71bdda82
Commit
71bdda82
authored
2 years ago
by
Millian Poquet
Browse files
Options
Downloads
Patches
Plain Diff
refactor build envs
parent
7e9e1730
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
build.ninja
+3
-3
3 additions, 3 deletions
build.ninja
code/pipe-example.c
+0
-0
0 additions, 0 deletions
code/pipe-example.c
default.nix
+3
-15
3 additions, 15 deletions
default.nix
slides.tex
+0
-41
0 additions, 41 deletions
slides.tex
with
9 additions
and
59 deletions
.gitignore
+
3
−
0
View file @
71bdda82
result
.ninja_*
fig/*.pdf
fig/*.pdf
pipe-usage-example.pdf
This diff is collapsed.
Click to expand it.
build.ninja
+
3
−
3
View file @
71bdda82
rule svg_to_pdf
rule svg_to_pdf
command = inkscape -o $out $in
command = inkscape -o $out $in
rule
tex_to
_pdf
rule
concatenate
_pdf
command = pdf
latex -interaction=nonstopmode $in
command = pdf
tk $in cat output $out
build
slides.pdf slides.aux slides.log slides.nav slides.out slides.snm slides.toc: tex_to_pdf slides.tex |
fig/00-parent-begin.pdf fig/01-parent-pipe.pdf fig/02-parent-fork.pdf fig/03-parent-fork-focus-pipe.pdf fig/04-parent-switch.pdf fig/05-parent-close.pdf fig/06-parent-close-done.pdf fig/07-parent-read-blocked.pdf fig/08-child-switch.pdf fig/09-child-close.pdf fig/10-child-close-done.pdf fig/11-child-dup2.pdf fig/12-child-dup2-done.pdf fig/13-child-dup2-done2.pdf fig/14-child-exec.pdf fig/15-child-exec-done.pdf fig/16-parent-read-loop.pdf fig/17-child-exit.pdf fig/18-child-exit-done.pdf fig/18b-child-exit-done-deadlock-note.pdf fig/19-parent-close.pdf fig/20-parent-close-done.pdf
build
pipe-usage-example.pdf: concatenate_pdf
fig/00-parent-begin.pdf fig/01-parent-pipe.pdf fig/02-parent-fork.pdf fig/03-parent-fork-focus-pipe.pdf fig/04-parent-switch.pdf fig/05-parent-close.pdf fig/06-parent-close-done.pdf fig/07-parent-read-blocked.pdf fig/08-child-switch.pdf fig/09-child-close.pdf fig/10-child-close-done.pdf fig/11-child-dup2.pdf fig/12-child-dup2-done.pdf fig/13-child-dup2-done2.pdf fig/14-child-exec.pdf fig/15-child-exec-done.pdf fig/16-parent-read-loop.pdf fig/17-child-exit.pdf fig/18-child-exit-done.pdf fig/18b-child-exit-done-deadlock-note.pdf fig/19-parent-close.pdf fig/20-parent-close-done.pdf
build fig/00-parent-begin.pdf: svg_to_pdf fig/00-parent-begin.svg
build fig/00-parent-begin.pdf: svg_to_pdf fig/00-parent-begin.svg
build fig/01-parent-pipe.pdf: svg_to_pdf fig/01-parent-pipe.svg
build fig/01-parent-pipe.pdf: svg_to_pdf fig/01-parent-pipe.svg
...
...
This diff is collapsed.
Click to expand it.
pipe-example.c
→
code/
pipe-example.c
+
0
−
0
View file @
71bdda82
File moved
This diff is collapsed.
Click to expand it.
default.nix
+
3
−
15
View file @
71bdda82
...
@@ -6,24 +6,12 @@
...
@@ -6,24 +6,12 @@
let
let
self
=
rec
{
self
=
rec
{
slides
=
pkgs
.
stdenv
.
mkDerivation
rec
{
shell
=
pkgs
.
mkShell
{
name
=
"report"
;
buildInputs
=
with
pkgs
;
[
nativeBuildInputs
=
with
pkgs
;
[
texlive
.
combined
.
scheme-full
ninja
ninja
inkscape
inkscape
pdftk
];
];
src
=
pkgs
.
lib
.
sourceByRegex
./.
[
".*
\.
tex"
"build
\.
ninja"
"fig"
"fig/.*
\.
svg"
];
installPhase
=
''
mkdir -p $out
mv slides.pdf $out/
''
;
};
};
};
};
in
in
...
...
This diff is collapsed.
Click to expand it.
slides.tex
deleted
100644 → 0
+
0
−
41
View file @
7e9e1730
\documentclass
[12pt, aspectratio=43]
{
beamer
}
\setbeamertemplate
{
navigation symbols
}{}
\mode
<presentation>
\title
{
Exemple de pipe (fd, pipe, fork, dup2, exec)
}
\author
{
Millian Poquet
}
\newcommand
{
\imageframe
}
[1]
{
\begin{frame}
[plain]
{}
%
\begin{center}
%
\makebox
[\textwidth]
{
\includegraphics
[width=\paperwidth]
{
#1
}}
%
\end{center}
%
\end{frame}
}
\begin{document}
\imageframe
{
fig/00-parent-begin.pdf
}
\imageframe
{
fig/01-parent-pipe.pdf
}
\imageframe
{
fig/02-parent-fork.pdf
}
\imageframe
{
fig/03-parent-fork-focus-pipe.pdf
}
\imageframe
{
fig/04-parent-switch.pdf
}
\imageframe
{
fig/05-parent-close.pdf
}
\imageframe
{
fig/06-parent-close-done.pdf
}
\imageframe
{
fig/07-parent-read-blocked.pdf
}
\imageframe
{
fig/08-child-switch.pdf
}
\imageframe
{
fig/09-child-close.pdf
}
\imageframe
{
fig/10-child-close-done.pdf
}
\imageframe
{
fig/11-child-dup2.pdf
}
\imageframe
{
fig/12-child-dup2-done.pdf
}
\imageframe
{
fig/13-child-dup2-done2.pdf
}
\imageframe
{
fig/14-child-exec.pdf
}
\imageframe
{
fig/15-child-exec-done.pdf
}
\imageframe
{
fig/16-parent-read-loop.pdf
}
\imageframe
{
fig/17-child-exit.pdf
}
\imageframe
{
fig/18-child-exit-done.pdf
}
\imageframe
{
fig/18b-child-exit-done-deadlock-note.pdf
}
\imageframe
{
fig/19-parent-close.pdf
}
\imageframe
{
fig/20-parent-close-done.pdf
}
\end{document}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment