From: Sergey Matveev Date: Thu, 16 Mar 2023 07:59:50 +0000 (+0300) Subject: build script X-Git-Url: http://www.git.stargrave.org/?p=mmc.git;a=commitdiff_plain;h=fed0d72aee457d2326bfc1a00f1113776c92f605 build script --- diff --git a/build b/build new file mode 100755 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 diff --git a/doc/usage.texi b/doc/usage.texi index ea0833d..f4132c5 100644 --- a/doc/usage.texi +++ b/doc/usage.texi @@ -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.