VERSION.do | 2 +- doc/cmds.texi | 4 ++-- doc/faq.texi | 2 +- doc/install.texi | 2 +- doc/integrity.texi | 2 +- makedist | 14 +++++++------- t/goredo-$1-touch.t | 2 +- t/goredo-both-ifcreate-ifchange.t | 4 ++-- t/goredo-build-uuid-for-fdood.t | 6 +++--- t/goredo-chmoding.t | 6 +++--- t/goredo-dashed-tgt.t | 4 ++-- t/goredo-default.do.t | 2 +- t/goredo-deps-after-cd.t | 4 ++-- t/goredo-deps.t | 8 ++++---- t/goredo-double-consideration.t | 14 +++++++------- t/goredo-empty-dep.t | 4 ++-- t/goredo-failed-build.t | 4 ++-- t/goredo-rel-ifcreate.t | 4 ++-- t/goredo-whichdo-regression.t | 4 ++-- diff --git a/VERSION.do b/VERSION.do index 5461b65dec9a328c3f7c9be5e078bec0618ab2369793d02920b8794eceb48a39..feaf36cf20c31dbb5acdf1f2038589ef0c5c3cef57d7cb22260ae2c6352c98ff 100644 --- a/VERSION.do +++ b/VERSION.do @@ -1,2 +1,2 @@ redo-ifchange usage.go -perl -ne 'print "$1\n" if /Version.*"(.*)"$/' < usage.go +perl -ne 'print "$1\n" if /Version.*"(.*)"$/' whatever.dot -$ dot -Tpng whatever.dot > whatever.png # possibly add -Gsplines=ortho +$ redo-dot target [...] >whatever.dot +$ dot -Tpng whatever.dot >whatever.png # possibly add -Gsplines=ortho @end example @pindex redo-depfix diff --git a/doc/faq.texi b/doc/faq.texi index 0d02063a38c879f2529c6dba9fb358410b75f4503fc449904cfb476bf5cd5734..6276ca872d922a9b64a33e1df032c9d3d1a0fb9d1950049441173e58d18e0d19 100644 --- a/doc/faq.texi +++ b/doc/faq.texi @@ -26,7 +26,7 @@ Those who create an empty file if no @file{stdout} was written -- are failed implementations. redo is a tool to help people. Literally all targets can be safely -@code{redo-stamp < $3}-ed, reducing false positive out-of-dates. Of +@code{redo-stamp <$3}-ed, reducing false positive out-of-dates. Of course, with the correct @file{stdout}/@file{$3} working and placing necessary results in @file{$3}, instead of just silently feeding them in @command{redo-stamp}. diff --git a/doc/install.texi b/doc/install.texi index cf612b29b3b24c5ff49703921450da0a3740ac969237a243e4e203e1c4b04e9f..44da599fabcf3989ba4a8431b1afafefca21bd3419ac5d1a20eef2a211a1947a 100644 --- a/doc/install.texi +++ b/doc/install.texi @@ -43,7 +43,7 @@ @example $ [fetch|wget] http://www.goredo.cypherpunks.su/download/goredo-@value{VERSION}.tar.zst $ [fetch|wget] http://www.goredo.cypherpunks.su/download/goredo-@value{VERSION}.tar.zst.@{asc,sig@} [verify signature] -$ zstd -d < goredo-@value{VERSION}.tar.zst | tar xf - +$ zstd -d download.texi <download.texi < $texi <$texi < $texi <$texi < $texi <$texi < "$tarball".meta4 + http://y.www.goredo.cypherpunks.su/download/"$tarball" <"$tarball" >"$tarball".meta4 size=$(( $(stat -f %z $tarball) / 1024 )) release_date=$(date "+%Y-%m-%d") diff --git a/t/goredo-$1-touch.t b/t/goredo-$1-touch.t index c20202b4c2f7fcb10774cb0317cfff8bfb94506c39851d2f02ca0be9140004d8..7e19dd5062e8968e9079b6f39347d22aefd80831dba3dd8eed1d6ee237481747 100755 --- a/t/goredo-$1-touch.t +++ b/t/goredo-$1-touch.t @@ -5,7 +5,7 @@ test_description="Check failing if unexistent \$1 is touched" . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 -echo touch \$1 > foo.do +echo touch \$1 >foo.do test_expect_success "it fails" 'redo foo ; [ $? = 1 ]' test_done diff --git a/t/goredo-both-ifcreate-ifchange.t b/t/goredo-both-ifcreate-ifchange.t index df15e81e014a23c0ca0a5efeca0974c90af8da55ea842076c5d9756b180d7287..1f491bf207a8ee28299ddd1318e73c300bea77edae7e60f493c8255280656e76 100755 --- a/t/goredo-both-ifcreate-ifchange.t +++ b/t/goredo-both-ifcreate-ifchange.t @@ -6,8 +6,8 @@ . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 touch src -echo redo-ifchange src > tgt.do -echo redo-ifcreate src >> tgt.do +echo redo-ifchange src >tgt.do +echo redo-ifcreate src >>tgt.do redo tgt 2>2 test_expect_success "warn exists" 'grep -q "simultaneous ifcreate and ifchange" 2' diff --git a/t/goredo-build-uuid-for-fdood.t b/t/goredo-build-uuid-for-fdood.t index eec3f2543cabd4c6c23965a7a1aa37e49150c0c68d96817f99257305a7da6391..67b99465894abbe7b406acdada7278a7b5358aa2cab55d3cdf2037a3dd7a5f3d 100755 --- a/t/goredo-build-uuid-for-fdood.t +++ b/t/goredo-build-uuid-for-fdood.t @@ -5,9 +5,9 @@ test_description="Passed known OOD targets must not skip BuildUUID check" . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 -echo redo-ifchange l3 l2 > l1.do -echo redo-ifchange l3 > l2.do -cat > l3.do <l1.do +echo redo-ifchange l3 >l2.do +cat >l3.do < foo.do +echo echo ok >foo.do redo foo test_expect_success "foo is non executable" '[ ! -x foo ]' inode0=`perl -e '@s=stat "foo"; print "$s[1]\n"'` -cat > foo.do < \$3 +cat >foo.do <\$3 chmod +x \$3 EOF redo foo diff --git a/t/goredo-dashed-tgt.t b/t/goredo-dashed-tgt.t index 35fab808fb3fbc23665ec2accc40753658400fd005ef75620642c377e02a0494..78da65ca2d7ef8d550b78b0bbb9b0bcbdd729617bb55917851193160e0aacb54 100755 --- a/t/goredo-dashed-tgt.t +++ b/t/goredo-dashed-tgt.t @@ -5,12 +5,12 @@ test_description="Check that dashed targets are not treated as options" . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 -echo echo \$1 > default.do +echo echo \$1 >default.do redo -- ok test_expect_success "redo skips dashes" '[ ! -e ./-- ]' test_expect_success "redo mades ok" '[ -s ok ]' -echo "redo-ifchange -- ok" > foo.do +echo "redo-ifchange -- ok" >foo.do rm ok redo foo test_expect_success "dashes made" '[ -s ./-- ]' diff --git a/t/goredo-default.do.t b/t/goredo-default.do.t index 131bb6fb0a1dfcd13f39b9d629f57f6fc7f9393b9e5fc55d7ac2aba2dfbbe2b9..1acd261bd3f648f13c9c2741570f5d2a805746b6c156302bdb3715f8d94b15a8 100755 --- a/t/goredo-default.do.t +++ b/t/goredo-default.do.t @@ -6,7 +6,7 @@ . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 mkdir foo -echo echo echo ok > default.do +echo echo echo ok >default.do redo foo/default.do test_expect_success "repeated" "redo foo/default.do" test_expect_success "repeated again" "redo foo/default.do" diff --git a/t/goredo-deps-after-cd.t b/t/goredo-deps-after-cd.t index eb48cae3760cc02c8c3b9eb7d08644a6914d19fbf715b92d995890c44e69eeb3..c84b4fa13ea838bf5c35178f3095181b9d3acb5f4bd614c8b692729426f340e3 100755 --- a/t/goredo-deps-after-cd.t +++ b/t/goredo-deps-after-cd.t @@ -6,12 +6,12 @@ . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 mkdir -p bin src -cat > bin/default.do <bin/default.do < src/src.go +echo source code >src/src.go test_expect_success Build "redo bin/cmd" stat1=`stat bin/cmd` diff --git a/t/goredo-deps.t b/t/goredo-deps.t index 3bfaaed8cd5f62ec2175ec14fc773f5951f0db0304d06069ba2882e5da808600..dd3d6ba41cba1609a1ea998460c855624d1d228f80df7fdd9b34115d30751753 100755 --- a/t/goredo-deps.t +++ b/t/goredo-deps.t @@ -6,18 +6,18 @@ . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 mkdir -p sub -cat > default.html.do <default.html.do < default.pre.do <default.pre.do < footer.inc -echo "" > sub/index.html.in +echo FOOTER >footer.inc +echo "" >sub/index.html.in test_expect_success Build "redo sub/index.html" stat1=`stat sub/index.html` diff --git a/t/goredo-double-consideration.t b/t/goredo-double-consideration.t index 45cd175bb20fc4132e9f2d4415656e19bee60b558a7f90ee9c263302a020f5a2..3048350699ebd6eaa45b862b139a09f6eb468356bdafef9a47ce25a9c6c8e65e 100755 --- a/t/goredo-double-consideration.t +++ b/t/goredo-double-consideration.t @@ -5,28 +5,28 @@ test_description="Do not fail if two always-ed targets run simultaneously" . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 -echo redo-ifchange version.h > all.do -cat > version.h.do <all.do +cat >version.h.do < "\$3" + >"\$3" redo-stamp <"\$3" EOF -cat > version.do < "\$3" +cat >version.do <"\$3" redo-always redo-stamp <"\$3" EOF -cat > date.do <date.do <"\$3" redo-always redo-stamp <"\$3" EOF -cat > version.h.in <version.h.in < foo.do -cat > bar.do <foo.do +cat >bar.do < bar.do -echo redo-ifchange bar > foo.do +echo exit 1 >bar.do +echo redo-ifchange bar >foo.do test_expect_success "first fail" 'redo foo ; [ $? = 1 ]' test_expect_success "second fail" 'redo foo ; [ $? = 1 ]' diff --git a/t/goredo-rel-ifcreate.t b/t/goredo-rel-ifcreate.t index aa0ea7450ab3c4d97eaa2694ee70def555c944d815a7c2c02c34d43c1186d04e..e0b7e667f2eb1dda0645b5c79e1e7ca5640c919a991a5812f8cc128e94789f89 100755 --- a/t/goredo-rel-ifcreate.t +++ b/t/goredo-rel-ifcreate.t @@ -6,8 +6,8 @@ . $SHARNESS_TEST_SRCDIR/sharness.sh export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 mkdir -p a/b/c a/c -echo whatever > a/b/c/dep -cat > a/b/default.do <a/b/c/dep +cat >a/b/default.do < our <our < their +redo-whichdo a/b/c.d >their test_expect_success expected "cmp --silent our their" test_done