REVTAG=""
PACKAGES=1
-while getopts "pchu?r:" c
+FILENAMEOUT=""
+
+while getopts "s:pchu?r:f:" c
do
case "$c" in
\?)
- echo "Usage: $0 [-p] [-c] [-h] [-r <tag>] [-u]" >&2
+ echo "Usage: $0 [-p] [-c] [-h] [-r <tag>] [-u] [-f <filename>] [-s <username>]" >&2
exit 1
;;
h)
HDEMU=1
USB=1
;;
+ f)
+ FILENAMEOUT="$OPTARG"
+ ;;
+ s) USERNAME="--username=$OPTARG"
+ ;;
esac
done
fi
echo " * Cleanup old files"
-rm -rf $RELEASEDIR $IMG $IMAGE $ROOTIMAGE $IMGBZ $CDFILES image*
+rm -rf $RELEASEDIR $IMG $IMAGE $ROOTIMAGE $CDFILES image*
mkdir -p $CDFILES || exit
mkdir -p $RELEASEDIR
mkfs -B $BS -b $ROOTBLOCKS $TMPDISK3 || exit
then
echo " * Doing new svn export"
REPO=https://gforge.cs.vu.nl/svn/minix/trunk/$SRC
- REVISION="`svn info $SVNREV $REPO | grep '^Revision: ' | awk '{ print $2 }'`"
+ REVISION="`svn info $USERNAME $SVNREV $REPO | grep '^Revision: ' | awk '{ print $2 }'`"
echo "Doing export of revision $REVISION from $REPO."
- ( cd $RELEASEDIR/usr && svn export -r$REVISION $REPO )
+ ( cd $RELEASEDIR/usr && svn $USERNAME export -r$REVISION $REPO )
REVTAG=r$REVISION
echo "
else
IMG=${IMG_BASE}_${REVTAG}.iso
fi
-IMGBZ=${IMG}.bz2
-echo "Making $IMGBZ"
echo " * Fixups for owners and modes of dirs and files"
chown -R bin $RELEASEDIR/usr/$SRC
partition -m $IMG 0 81:$isosects 81:$ROOTSECTS 81:$USRSECTS
fi
fi
+
+if [ "$FILENAMEOUT" ]
+then echo "$IMG" >$FILENAMEOUT
+fi