]> Cypherpunks repositories - goredo.git/commitdiff
Unify redirection operator usage v2.6.3
authorSergey Matveev <stargrave@stargrave.org>
Sun, 24 Nov 2024 11:11:10 +0000 (14:11 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 24 Nov 2024 11:11:10 +0000 (14:11 +0300)
19 files changed:
VERSION.do
doc/cmds.texi
doc/faq.texi
doc/install.texi
doc/integrity.texi
makedist
t/goredo-$1-touch.t
t/goredo-both-ifcreate-ifchange.t
t/goredo-build-uuid-for-fdood.t
t/goredo-chmoding.t
t/goredo-dashed-tgt.t
t/goredo-default.do.t
t/goredo-deps-after-cd.t
t/goredo-deps.t
t/goredo-double-consideration.t
t/goredo-empty-dep.t
t/goredo-failed-build.t
t/goredo-rel-ifcreate.t
t/goredo-whichdo-regression.t

index 38d570cc5d474b9aa4facdf819b183aebcb5fa99..05a7249b19ec48e319f34e92cd5b31a3efd27d20 100644 (file)
@@ -1,2 +1,2 @@
 redo-ifchange usage.go
-perl -ne 'print "$1\n" if /Version.*"(.*)"$/' < usage.go
+perl -ne 'print "$1\n" if /Version.*"(.*)"$/' <usage.go
index 72d1238d16e83bf080ef592b01cc5c9f4d7f825e..6507ecac808f3d882f38096cdb2e2951df1bf06a 100644 (file)
@@ -140,8 +140,8 @@ default.do
     graph generator. For example to visualize your dependencies with GraphViz:
 @example
 $ redo target [...] # to assure that **/.redo/*.dep are filled up
-$ redo-dot target [...] > 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
index 7f6552126110f8ba03b80ffe86a0581569137dc0..5f15fd275fb8df224aba9760a897bb5ab8b78fe3 100644 (file)
@@ -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}.
index 001d732a288ebac675ed2a8cb83b4e6d96e66432..2faabfaacd6b39409ff30bc32081238790d32ae9 100644 (file)
@@ -43,7 +43,7 @@ Preferable way is to download tarball with the signature from website:
 $ [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 <goredo-@value{VERSION}.tar.zst | tar xf -
 $ cd goredo-@value{VERSION}/src
 $ go build -mod=vendor
 $ ./goredo -symlinks        # create redo-* commands symlinks
index e106ba11e7ce5427f328564410b851bbc2cbc9e6..3dc5cf12d42414d29d6928e4e6730a98cdc1a348 100644 (file)
@@ -28,7 +28,7 @@ $ gpg --auto-key-locate  wkd --locate-keys goredo at cypherpunks dot su
 
 @example
 $ ssh-keygen -Y verify -f PUBKEY-SSH.pub -I goredo@@cypherpunks.su -n file \
-    -s goredo-@value{VERSION}.tar.zst.sig < goredo-@value{VERSION}.tar.zst
+    -s goredo-@value{VERSION}.tar.zst.sig <goredo-@value{VERSION}.tar.zst
 @end example
 
 @end table
index ea60f5d9a69aa3e2f37116f305186167e46680d6..5c533ed32cba45a2e24db5937f6a356ead131747 100755 (executable)
--- a/makedist
+++ b/makedist
@@ -14,7 +14,7 @@ redo-ifchange VERSION
 
 ########################################################################
 cd doc
-cat > download.texi <<EOF
+cat >download.texi <<EOF
 You can obtain releases source code prepared tarballs on
 @url{http://www.goredo.cypherpunks.su/}.
 EOF
@@ -27,17 +27,17 @@ mkinfo() {
 
 texi=$(mktemp)
 
-cat > $texi <<EOF
+cat >$texi <<EOF
 \input texinfo
 @documentencoding UTF-8
 @settitle NEWS
 @node News
-`sed -n '3,$p' < news.texi`
+`sed -n '3,$p' <news.texi`
 @bye
 EOF
 mkinfo --output NEWS $texi
 
-cat > $texi <<EOF
+cat >$texi <<EOF
 \input texinfo
 @documentencoding UTF-8
 @settitle INSTALL
@@ -46,7 +46,7 @@ cat > $texi <<EOF
 EOF
 mkinfo --output INSTALL $texi
 
-cat > $texi <<EOF
+cat >$texi <<EOF
 \input texinfo
 @documentencoding UTF-8
 @settitle THANKS
@@ -87,10 +87,10 @@ zstd -22 --ultra -v goredo-"$release".tar
 tarball=goredo-"$release".tar.zst
 ssh-keygen -Y sign -f ~/.ssh/sign/goredo@cypherpunks.su -n file $tarball
 gpg --armor --detach-sign --sign --local-user 3A528DDE952C7E93 "$tarball"
-meta4-create -fn "$tarball" -mtime "$tarball" \
+meta4ra-create -fn "$tarball" -mtime "$tarball" \
     -sig-pgp "$tarball".asc -sig-ssh "$tarball".sig \
     http://www.goredo.cypherpunks.su/download/"$tarball" \
-    http://y.www.goredo.cypherpunks.su/download/"$tarball" < "$tarball" > "$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")
index 0d73b0249d90e88b791ad04461a7a0b704b35525..19abeb3b8176fb5b4fd68bc340a90305757ffde9 100755 (executable)
@@ -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
index e269fb4ba1364d7524abecab11636e07f15e1e72..81b209b2895c01b4900deb123bd5462fe221d9c8 100755 (executable)
@@ -6,8 +6,8 @@ test_description="Check that warning exists when using both ifcreate/ifchange"
 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'
index db952a5945293cd81998061630486e1abc1f43ee..f464767f1e9e7065d149bdfece75dc4efa93ba43 100755 (executable)
@@ -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 <<EOF
+echo redo-ifchange l3 l2 >l1.do
+echo redo-ifchange l3 >l2.do
+cat >l3.do <<EOF
 sleep 1
 touch \$(date +%s).touch
 EOF
index c283aba893b6e2a2d3208019045b7ff2cf2f15dd..01af33c3b40f2d2bb4c5e08549c544de604a1d44 100755 (executable)
@@ -5,13 +5,13 @@ test_description="Check that non-renamed target copies mode from temporary targe
 . $SHARNESS_TEST_SRCDIR/sharness.sh
 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
-echo echo ok > 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 <<EOF
-echo ok > \$3
+cat >foo.do <<EOF
+echo ok >\$3
 chmod +x \$3
 EOF
 redo foo
index 8f6f4084a34692ff4ba73210b65f066804d4e66d..5bbac3e5decd4df937a85ded02808b15e5626313 100755 (executable)
@@ -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 ./-- ]'
index f1782569a9a2d2a5f979e2d45d47bd85457e4fa8..e5c8825c9c0a31f17d1593b2b98d74228093bb05 100755 (executable)
@@ -6,7 +6,7 @@ test_description="Building of default.do must not depend on itself"
 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"
index e0432e79dcb46a8a05ad71b03c2caa6aca9f4d35..720123ca76cb93529e3215c837b8c0e782e6124b 100755 (executable)
@@ -6,12 +6,12 @@ test_description="Check that dependencies have correct relative path after cd"
 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
 mkdir -p bin src
-cat > bin/default.do <<EOF
+cat >bin/default.do <<EOF
 cd ../src
 redo-ifchange src.go
 echo bla bla bla
 EOF
-echo source code > src/src.go
+echo source code >src/src.go
 
 test_expect_success Build "redo bin/cmd"
 stat1=`stat bin/cmd`
index 34ba5044b924c0e598a191ed43d6f43b00ab608b..2417530dcef70cdf0205b62c19ef8f2f444044ab 100755 (executable)
@@ -6,18 +6,18 @@ test_description="Check that the following use-case won't rebuild everytime and
 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
 mkdir -p sub
-cat > default.html.do <<EOF
+cat >default.html.do <<EOF
 redo-ifchange \$2.pre
 echo HTML
 cat \$2.pre
 EOF
-cat > default.pre.do <<EOF
+cat >default.pre.do <<EOF
 redo-ifchange *.inc \$2.html.in
 echo PRE
 cat \$2.html.in
 EOF
-echo FOOTER > footer.inc
-echo "<html>" > sub/index.html.in
+echo FOOTER >footer.inc
+echo "<html>" >sub/index.html.in
 
 test_expect_success Build "redo sub/index.html"
 stat1=`stat sub/index.html`
index 4e7847a886c4a58336e397a48f82926a7496fa8b..fca94b3405b2e544321994f438b3d58a2e8aec73 100755 (executable)
@@ -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 <<EOF
+echo redo-ifchange version.h >all.do
+cat >version.h.do <<EOF
 redo-ifchange date version version.h.in
 VERSION=\$(cat version)
 DATE=\$(cat date)
 cat "\$2".in |
     sed -e "s/%%VERSION%%/\${VERSION}/g" \
         -e "s/%%DATE%%/\${DATE}/g" \
-       > "\$3"
+       >"\$3"
 redo-stamp <"\$3"
 EOF
-cat > version.do <<EOF
-echo some-vcs-version > "\$3"
+cat >version.do <<EOF
+echo some-vcs-version >"\$3"
 redo-always
 redo-stamp <"\$3"
 EOF
-cat > date.do <<EOF
+cat >date.do <<EOF
 date +'%Y%m%d_%H%M%S' >"\$3"
 redo-always
 redo-stamp <"\$3"
 EOF
-cat > version.h.in <<EOF
+cat >version.h.in <<EOF
 #define PRJ_VERSION "%%VERSION%%"
 #define PRJ_BLDDATE "%%DATE%%"
 EOF
index 63f9e30f8a49c9e769d5a192f47548d73fc6ea47..60351a43671985397c1a938ddeb8c567be7731ad 100755 (executable)
@@ -5,8 +5,8 @@ test_description="Check that empty target is a dependency and always OOD"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
-echo > foo.do
-cat > bar.do <<EOF
+echo >foo.do
+cat >bar.do <<EOF
 redo-ifchange foo
 echo bar
 EOF
index 1fecfb5c7efca1f47bc5c6386ab24a33c66b0b3b..8fea801a9d659f730cdc7c89ea0db1a11c0ac0fb 100755 (executable)
@@ -5,8 +5,8 @@ test_description="Check that failed build is still OOD target"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
-echo exit 1 > 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 ]'
 
index 61d534901c9e395abeb04d159a303a9124d442f6..816de9967aebdbec63fa8652c5db575f534b6b59 100755 (executable)
@@ -6,8 +6,8 @@ test_description="Proper relative to DirPrefix ifcreate paths"
 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 <<EOF
+echo whatever >a/b/c/dep
+cat >a/b/default.do <<EOF
 echo called \$1
 redo-ifcreate ../c/dep
 redo-ifchange c/dep
index 7984f0162d5fb6144505b555ed03898798d24987..ec184e69b08b9863465a4616dd43048d1bab3a78 100755 (executable)
@@ -5,7 +5,7 @@ test_description="Check that no regression occured as it happened in 2.2.0"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
-cat > our <<EOF
+cat >our <<EOF
 a/b/c.d.do
 a/b/default.d.do
 a/b/default.do
@@ -15,7 +15,7 @@ default.d.do
 default.do
 EOF
 touch default.do
-redo-whichdo a/b/c.d > their
+redo-whichdo a/b/c.d >their
 test_expect_success expected "cmp --silent our their"
 
 test_done