Skip to content
Snippets Groups Projects
Unverified Commit 6361d1b6 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

added newline at eof. and updated makefile

parent a04ab4d9
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,12 @@ markdown: $(MARKDOWN)
pandoc -s $(OPTIONS) $(REVEALOPTIONS) -o $@ $^
%.markdown: %.md metadata.yaml
echo "---" >> $@
sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > only_header
grep -v -F -x -f only_header $< > header.yaml
./yq_linux_amd64 merge metadata.yaml header.yaml > $@
rm only_header header.yaml
sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > no_header
grep -v -F -x -f no_header $< > header.yaml
echo "---" > tmp.yaml
./yq_linux_amd64 merge metadata.yaml header.yaml >> tmp.yaml
cat tmp.yaml no_header > $@
rm no_header header.yaml tmp.yaml
......
......@@ -156,3 +156,4 @@ $$
$$
où $|.|$ signifie le calcul du déterminant.
* Une façon alternative est donnée dans l'énoncé du travail pratique. Choisissez celle que vous préférez.
......@@ -82,3 +82,4 @@ int main(int argc, char **argv) {
$ ./prog Paul 29
Hello Paul, you are 29 years old.
```
......@@ -190,3 +190,4 @@ rebuild: clean hello
- `$^` : la liste des dépendances
- `$<` : la première dépendance
- `$*` : le nom de la cible sans extension
......@@ -78,3 +78,4 @@ const int *const p = &n; // la valeur p et *p sont const
*p = m; // erreur de compilation.
p = &m; // erreur de compilation.
```
......@@ -65,3 +65,4 @@ char name[100] = "Paul is not 100 characters long.";
```
- Pour avoir la liste complète: `man string`.
......@@ -94,3 +94,4 @@ int main(int argc, char **argv) {
- Les assertions sont là pour détecter les bugs (erreurs d'implémentation).
- Les assertions ne sont pas là pour gérer les problèmes externes au programme (allocation mémoire qui échoue, mauvais paramètre d'entrée passé par l'utilisateur, ...).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment