From 1815c076e2168ea13390886b4fb1728bdf54fc5b Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 6 Sep 2018 01:49:41 +0200 Subject: makefile: keep only what is listed in files.txt --- README.html | 19 ------------------- files.txt | 6 ++++++ makefile | 6 +++++- 3 files changed, 11 insertions(+), 20 deletions(-) delete mode 100644 README.html create mode 100644 files.txt diff --git a/README.html b/README.html deleted file mode 100644 index d044a58..0000000 --- a/README.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - Cours sur LaTeX et Python - - - - -

Présentation

-

Ceci est le tout premier fichier. Il faut maintenant commencer.

- - diff --git a/files.txt b/files.txt new file mode 100644 index 0000000..d6d75fd --- /dev/null +++ b/files.txt @@ -0,0 +1,6 @@ +files.txt +makefile +README.md +README.tex +sandbox +sandbox/01.tex \ No newline at end of file diff --git a/makefile b/makefile index 8bf9b28..6019fe2 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,10 @@ all: clean clean: + rm -rf .backup find -iname "*~" | xargs rm -rf + rsync -avPr --files-from=files.txt . .backup + rm -rf * + cp -p -r .backup/* . + rm -rf .backup pandoc -s README.tex -o README.md && sed -i 's/{#.*}//g' README.md - pandoc -s README.tex -o README.html -- cgit v1.2.3