]> Sergey Matveev's repositories - mmc.git/commitdiff
build script
authorSergey Matveev <stargrave@stargrave.org>
Thu, 16 Mar 2023 07:59:50 +0000 (10:59 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 16 Mar 2023 07:59:54 +0000 (10:59 +0300)
build [new file with mode: 0755]
doc/usage.texi

diff --git a/build b/build
new file mode 100755 (executable)
index 0000000..6816734
--- /dev/null
+++ b/build
@@ -0,0 +1,8 @@
+#!/bin/sh -ex
+
+prev="`pwd`"
+for cmd in cmd/rd cmd/mmc cmd/sb cmd/ch-leave ; do
+    cd $cmd
+    go build -ldflags=-s
+    cd "$prev"
+done
index ea0833d702d1e86ec28936f6f6bb77d8d7aa061d..f4132c59ff0d33e454b86851fa6a5cc7ec5d0637 100644 (file)
@@ -4,11 +4,7 @@
 @enumerate
 
 @item Get the @url{git://git.stargrave.org/mmc.git, source code} and
-compile Go programs in @file{cmd} subdirectory.
-
-@example
-for c (cmd/rd cmd/mmc cmd/sb cmd/ch-leave) @{ pushd $c ; go build ; popd @}
-@end example
+compile Go programs in @file{cmd} subdirectory: @code{./build}.
 
 @item Create and change to the directory where the state will be kept.