release.sh: add -e
. allows extra files in release for flexibility . written by Jan Wieck
This commit is contained in:
parent
0811b47a71
commit
41f823ae4c
1 changed files with 12 additions and 2 deletions
|
@ -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 <tag>] [-u] [-f <filename>] [-s <username>] -j<jaildir> [-L <packageurl>]" >&2
|
||||
echo "Usage: $0 [-l] [-p] [-c] [-h] [-m] [-M] [-r <tag>] [-u] [-f <filename>] [-s <username>] -j<jaildir> [-L <packageurl>] [-e <extras-path>]" >&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."
|
||||
|
|
Loading…
Reference in a new issue