aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-09-06 12:39:27 +0200
committerRobert Alessi <alessi@robertalessi.net>2018-09-06 12:39:27 +0200
commit2fa69381b8332949cbd5eaedd1203ae89d0f5962 (patch)
treee4c4482ebefacb34e4567512314587a6bb2d3e03
parentbab946cbb2b75b1a413c4b12005d1d60123d8eff (diff)
downloadcourses-2fa69381b8332949cbd5eaedd1203ae89d0f5962.tar.gz
improved makefile
-rw-r--r--files.txt5
-rw-r--r--ls-R3
-rw-r--r--makefile4
-rw-r--r--sandbox/01.tex0
4 files changed, 6 insertions, 6 deletions
diff --git a/files.txt b/files.txt
deleted file mode 100644
index afd71db..0000000
--- a/files.txt
+++ /dev/null
@@ -1,5 +0,0 @@
1files.txt
2makefile
3README.md
4README.tex
5sandbox/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 @@
1./makefile
2./README.md
3./README.tex
diff --git a/makefile b/makefile
index 6019fe2..0844d8f 100644
--- a/makefile
+++ b/makefile
@@ -3,7 +3,9 @@ all: clean
3clean: 3clean:
4 rm -rf .backup 4 rm -rf .backup
5 find -iname "*~" | xargs rm -rf 5 find -iname "*~" | xargs rm -rf
6 rsync -avPr --files-from=files.txt . .backup 6 find ./* -type f | grep 'makefile\|md$$\|tex$$' > ls-R
7 rsync -avPr --files-from=ls-R . .backup
8 cp ls-R .backup
7 rm -rf * 9 rm -rf *
8 cp -p -r .backup/* . 10 cp -p -r .backup/* .
9 rm -rf .backup 11 rm -rf .backup
diff --git a/sandbox/01.tex b/sandbox/01.tex
deleted file mode 100644
index e69de29..0000000
--- a/sandbox/01.tex
+++ /dev/null