-#! /usr/local/bin/bash
+#! /usr/bin/env bash
shopt -s nullglob
echo "================="
WEBDIR=$MYDIR/../../htwork
CVSDIR=$(cd $MYDIR/../../cvs && pwd)
+GMAKE=make
+which gmake >/dev/null && GMAKE=gmake
+export GMAKE
+
active_branches="current 8.3-branch 8.2-branch 8.1-branch 8.0-branch 7.4-branch"
if [ -n "$1" ]; then
touch "$lock"
for branch in $active_branches; do
- tmp=`mktemp -t "$me"`
+ tmp=`mktemp`
PGSRC=$CVSDIR/postgresql-$branch
pushd $PGSRC
- test -f GNUmakefile && gmake maintainer-clean
+ test -f GNUmakefile && $GMAKE maintainer-clean
cvs -q update | tee "$tmp"
popd