]> Cypherpunks.ru repositories - gogost.git/commitdiff
Unify redirection operator usage
authorSergey Matveev <stargrave@stargrave.org>
Mon, 22 Apr 2024 14:19:46 +0000 (17:19 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 22 Apr 2024 14:22:24 +0000 (17:22 +0300)
install.texi
integrity.texi
makedist
version

index 891ac9dcfd0dac81a3793378984f9fb7f28333db..409e67e821d941db879a7431ca342bcfa43b75e3 100644 (file)
@@ -24,7 +24,7 @@ like this:
 $ mkdir -p myproj/vendor/go.cypherpunks.ru/gogost
 $ mv gogost-@value{VERSION} myproj/vendor/go.cypherpunks.ru/gogost/v5
 $ cd myproj
-$ cat > main.go <<EOF
+$ cat >main.go <<EOF
 package main
 
 import (
index 7e283ea7ef2874e569f41df2e76af9cdcf0fda87..3127ab857e3ade6b5acf20ddf6420759f6b89d7b 100644 (file)
@@ -28,7 +28,7 @@ $ gpg --auto-key-locate  wkd --locate-keys gogost at cypherpunks dot ru
 
 @example
 $ ssh-keygen -Y verify -f PUBKEY-SSH.pub -I gogost@@cypherpunks.ru -n file \
-    -s gogost-@value{VERSION}.tar.zst.sig < gogost-@value{VERSION}.tar.zst
+    -s gogost-@value{VERSION}.tar.zst.sig <gogost-@value{VERSION}.tar.zst
 @end example
 
 @end table
index 48bb6e8167627b252d81a77645f59e615b37b1e4..36f671bc5684fa4eaf649e228261954959b29f8f 100755 (executable)
--- a/makedist
+++ b/makedist
@@ -9,10 +9,10 @@ release=$1
 git clone . $tmp/gogost-$release
 cd $tmp/gogost-$release
 git checkout v$release
-./version > VERSION
+./version >VERSION
 go mod vendor
 
-cat > download.texi <<EOF
+cat >download.texi <<EOF
 You can obtain releases source code prepared tarballs on
 @url{http://www.gogost.cypherpunks.ru/}.
 EOF
@@ -24,7 +24,7 @@ mkinfo() {
 }
 
 texi=$(mktemp)
-cat > $texi <<EOF
+cat >$texi <<EOF
 \input texinfo
 @documentencoding UTF-8
 @settitle INSTALL
@@ -33,7 +33,7 @@ cat > $texi <<EOF
 EOF
 mkinfo --output INSTALL $texi
 
-cat > $texi <<EOF
+cat >$texi <<EOF
 \input texinfo
 @documentencoding UTF-8
 @settitle NEWS
@@ -42,7 +42,7 @@ cat > $texi <<EOF
 EOF
 mkinfo --output NEWS $texi
 
-cat > $texi <<EOF
+cat >$texi <<EOF
 \input texinfo
 @documentencoding UTF-8
 @settitle FAQ
@@ -70,7 +70,7 @@ gpg --armor --detach-sign --sign --local-user 82343436696FC85A $tarball
 meta4-create -fn "$tarball" -mtime "$tarball" \
     -sig-pgp "$tarball".asc -sig-ssh "$tarball".sig \
     http://www.gogost.cypherpunks.ru/"$tarball" \
-    http://y.www.gogost.cypherpunks.ru/"$tarball" < "$tarball" > "$tarball".meta4
+    http://y.www.gogost.cypherpunks.ru/"$tarball" <"$tarball" >"$tarball".meta4
 
 size=$(( $(stat -f %z $tarball) / 1024 ))
 release_date=$(date "+%Y-%m-%d")
diff --git a/version b/version
index 0775f20518a6a6c0630e8af2d58c9f809905d9bd..5fa0ac910d725e8a8e185248f0aab681679676e5 100755 (executable)
--- a/version
+++ b/version
@@ -1,3 +1,3 @@
 #!/bin/sh -e
 
-exec perl -ne 'print "$1\n" if /Version.*"(.*)"$/' < "$(realpath -- $(dirname "$0"))"/gogost.go
+exec perl -ne 'print "$1\n" if /Version.*"(.*)"$/' <"$(realpath -- $(dirname "$0"))"/gogost.go