From 2fa69381b8332949cbd5eaedd1203ae89d0f5962 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 6 Sep 2018 12:39:27 +0200 Subject: improved makefile --- files.txt | 5 ----- ls-R | 3 +++ makefile | 4 +++- sandbox/01.tex | 0 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 files.txt create mode 100644 ls-R delete mode 100644 sandbox/01.tex diff --git a/files.txt b/files.txt deleted file mode 100644 index afd71db..0000000 --- a/files.txt +++ /dev/null @@ -1,5 +0,0 @@ -files.txt -makefile -README.md -README.tex -sandbox/01.tex \ No newline at end of file diff --git a/ls-R b/ls-R new file mode 100644 index 0000000..fe0a183 --- /dev/null +++ b/ls-R @@ -0,0 +1,3 @@ +./makefile +./README.md +./README.tex diff --git a/makefile b/makefile index 6019fe2..0844d8f 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,9 @@ all: clean clean: rm -rf .backup find -iname "*~" | xargs rm -rf - rsync -avPr --files-from=files.txt . .backup + find ./* -type f | grep 'makefile\|md$$\|tex$$' > ls-R + rsync -avPr --files-from=ls-R . .backup + cp ls-R .backup rm -rf * cp -p -r .backup/* . rm -rf .backup diff --git a/sandbox/01.tex b/sandbox/01.tex deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3