Updated scripts to include source code in release packages.

This commit is contained in:
Richard Helgeby 2009-12-26 21:27:22 +01:00
parent 614048ad69
commit cd5b1dc815
2 changed files with 16 additions and 3 deletions

View File

@ -67,6 +67,9 @@ then
exit 1
fi
# Rebuild hgversion.h.inc for unofficial builds.
sh updateversion.sh --unofficial
# Copy files.
echo "Copying documentation..."
@ -77,6 +80,10 @@ echo "Copying plugin binary..."
mkdir -p $PLUGINDIR
cp -r $BUILDDIR/$PLUGINFILE $PLUGINDIR/$PLUGINFILE
echo "Copying plugin source code..."
mkdir -p $SOURCE_DEST
cp -r $SOURCEDIR $SOURCE_DEST
if [ $MAKEPATCH = "false" ]
then
# Copy all files.

View File

@ -6,9 +6,16 @@
# Program for printing date.
ZR_DATEPATH='date'
ZR_UNOFFICIAL=false
if [ "$1" ]
then
ZR_DATEPATH=$1
if [ "$1" = "--unofficial" ]
then
ZR_UNOFFICIAL=true
else
ZR_DATEPATH=$1
fi
fi
ZR_VERSION_FILE="src/zr/hgversion.h.inc"
@ -23,8 +30,7 @@ echo "#define ZR_VER_PRODUCT_NAME \"$ZR_PRODUCT_NAME\"" > $ZR_VERSION_FILE
echo "#define ZR_VER_COPYRIGHT \"$ZR_COPYRIGHT\"" >> $ZR_VERSION_FILE
echo "#define ZR_VER_VERSION VERSION" >> $ZR_VERSION_FILE
echo "#define ZR_VER_BRANCH \"$ZR_BRANCH\"" >> $ZR_VERSION_FILE
#echo "#define ZR_VER_BRANCH \"$(hg id -b)\"" >> $ZR_VERSION_FILE
echo "#define ZR_VER_REVISION \"$(hg id -n):$(hg id -i)\"" >> $ZR_VERSION_FILE
echo "#define ZR_VER_REVISION \"$ZR_REVISION\"" >> $ZR_VERSION_FILE
echo "#define ZR_VER_LICENSE \"$ZR_LICENSE\"" >> $ZR_VERSION_FILE
echo "#define ZR_VER_DATE \"$ZR_DATE\"" >> $ZR_VERSION_FILE