X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0d7dab4fcaccb43a77d216985c7fb50f67d1ed95..1a296f8dd3a81f722fca3423898d8c4c5e972c06:/docs/contrib/build_nmh diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index 355bd1de..36fd8698 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -8,6 +8,10 @@ # * Unless the -y option is provided, this script then interactively # walks you through confirmation of common configuration settings. # +# This file can be downloaded and immediately run using, e.g., +# wget http://git.savannah.gnu.org/cgit/nmh.git/plain/docs/contrib/build_nmh +# sh build_nmh +# # Typical usage: # The first time you invoke this script, use the -i option to install # nmh in the specified location. The script will walk you through the @@ -129,7 +133,7 @@ else git_opts="${git_opts:+$git_opts }--branch $branch" if "$gitdir"/git clone $git_opts "git://$gitrepo/nmh.git"; then cd nmh || die "failed to clone nmh" - git log --max-count=1 --pretty-format:%H + printf "commit %s\n" `git log --max-count=1 --pretty=format:%H` else die 'failed to clone git repo' fi @@ -289,7 +293,7 @@ if [ $install -ge 1 -a "$LOGNAME" != root ]; then fi fi -tools/showbuildenv | grep -Ev 'PID=|SHLVL' +[ -x tools/showbuildenv ] && tools/showbuildenv | grep -Ev 'PID=|SHLVL' #### @@ -402,7 +406,7 @@ cat "$tmpfile" grep -E 'Error|warn' "$tmpfile" if [ $status -eq 0 ]; then - [ $verbose -ge 1 ] && echo build completed successfully + [ $verbose -ge 1 ] && echo build completed successfully >&3 else echo build failed! [ "$logfile" = - ] || echo "build failed, build log is in $logfile" >&3