From: Ben Gras Date: Mon, 14 Nov 2011 23:24:37 +0000 (+0000) Subject: release.sh: add -e X-Git-Tag: v3.2.0~253 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=41f823ae4c72f5c2b34cfbd11c8040d389f20306;p=minix.git release.sh: add -e . allows extra files in release for flexibility . written by Jan Wieck --- diff --git a/tools/release.sh b/tools/release.sh index 5b7d1e40d..10ed4b941 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -68,6 +68,8 @@ REVTAG="" PACKAGES=1 MINIMAL=0 MAKEMAP=0 +EXTRAS_INSTALL=0 +EXTRAS_PATH= # Do we have git? if git --version >/dev/null @@ -79,11 +81,11 @@ fi FILENAMEOUT="" -while getopts "j:ls:pmMchu?r:f:L:" c +while getopts "j:ls:pmMchu?r:f:L:e:" c do case "$c" in \?) - echo "Usage: $0 [-l] [-p] [-c] [-h] [-m] [-M] [-r ] [-u] [-f ] [-s ] -j [-L ]" >&2 + echo "Usage: $0 [-l] [-p] [-c] [-h] [-m] [-M] [-r ] [-u] [-f ] [-s ] -j [-L ] [-e ]" >&2 exit 1 ;; h) @@ -126,6 +128,9 @@ do L) PKG_ADD_URL="$OPTARG" CUSTOM_PACKAGES=1 ;; + e) EXTRAS_INSTALL=1 + EXTRAS_PATH="$OPTARG" + ;; esac done @@ -295,6 +300,11 @@ then ln $RELEASEDIR/boot/image_big $RELEASEDIR/boot/image/$version fi +if [ $EXTRAS_INSTALL -ne 0 ] ; then + echo " * Copying files from $EXTRAS_PATH" + cp -Rv $EXTRAS_PATH/* $RELEASEDIR +fi + # If we are making a jail, all is done! if [ $JAILMODE = 1 ] then echo "Created new minix install in $RELEASEDIR."