]> Cypherpunks.ru repositories - goredo.git/commitdiff
clean target has no dependencies
authorSergey Matveev <stargrave@stargrave.org>
Sun, 26 Nov 2023 07:53:00 +0000 (10:53 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 26 Nov 2023 07:53:00 +0000 (10:53 +0300)
t/clean [new file with mode: 0755]
t/clean.do [deleted file]
t/redo-sh.tests/clean [moved from t/redo-sh.tests/clean.do with 85% similarity, mode: 0755]

diff --git a/t/clean b/t/clean
new file mode 100755 (executable)
index 0000000..14a4370
--- /dev/null
+++ b/t/clean
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+cd "$(dirname "$(realpath -- "$0")")"
+redo apenwarr/clean
+( cd redo-sh.tests ; ./clean )
+for d in apenwarr redo-sh.tests ; do ( cd $d ; redo-cleanup full >/dev/null ) ; done
diff --git a/t/clean.do b/t/clean.do
deleted file mode 100644 (file)
index 80f432d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-redo apenwarr/clean redo-sh.tests/clean
-for d in apenwarr redo-sh.tests ; do ( cd $d ; redo-cleanup full >/dev/null ) ; done
old mode 100644 (file)
new mode 100755 (executable)
similarity index 85%
rename from t/redo-sh.tests/clean.do
rename to t/redo-sh.tests/clean
index dec6f7b..9e80172
@@ -1,3 +1,5 @@
+#!/bin/sh -e
+
 for f in * ; do
     [ -d $f ] || continue
     find $f ! -name test -delete