From fed0d72aee457d2326bfc1a00f1113776c92f605 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 16 Mar 2023 10:59:50 +0300 Subject: [PATCH] build script --- build | 8 ++++++++ doc/usage.texi | 6 +----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100755 build 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. -- 2.44.0