Updated scripts to include source code in release packages.
This commit is contained in:
parent
614048ad69
commit
cd5b1dc815
7
build.sh
7
build.sh
|
@ -67,6 +67,9 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Rebuild hgversion.h.inc for unofficial builds.
|
||||||
|
sh updateversion.sh --unofficial
|
||||||
|
|
||||||
|
|
||||||
# Copy files.
|
# Copy files.
|
||||||
echo "Copying documentation..."
|
echo "Copying documentation..."
|
||||||
|
@ -77,6 +80,10 @@ echo "Copying plugin binary..."
|
||||||
mkdir -p $PLUGINDIR
|
mkdir -p $PLUGINDIR
|
||||||
cp -r $BUILDDIR/$PLUGINFILE $PLUGINDIR/$PLUGINFILE
|
cp -r $BUILDDIR/$PLUGINFILE $PLUGINDIR/$PLUGINFILE
|
||||||
|
|
||||||
|
echo "Copying plugin source code..."
|
||||||
|
mkdir -p $SOURCE_DEST
|
||||||
|
cp -r $SOURCEDIR $SOURCE_DEST
|
||||||
|
|
||||||
if [ $MAKEPATCH = "false" ]
|
if [ $MAKEPATCH = "false" ]
|
||||||
then
|
then
|
||||||
# Copy all files.
|
# Copy all files.
|
||||||
|
|
|
@ -6,10 +6,17 @@
|
||||||
# Program for printing date.
|
# Program for printing date.
|
||||||
ZR_DATEPATH='date'
|
ZR_DATEPATH='date'
|
||||||
|
|
||||||
|
ZR_UNOFFICIAL=false
|
||||||
|
|
||||||
if [ "$1" ]
|
if [ "$1" ]
|
||||||
then
|
then
|
||||||
|
if [ "$1" = "--unofficial" ]
|
||||||
|
then
|
||||||
|
ZR_UNOFFICIAL=true
|
||||||
|
else
|
||||||
ZR_DATEPATH=$1
|
ZR_DATEPATH=$1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
ZR_VERSION_FILE="src/zr/hgversion.h.inc"
|
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_COPYRIGHT \"$ZR_COPYRIGHT\"" >> $ZR_VERSION_FILE
|
||||||
echo "#define ZR_VER_VERSION VERSION" >> $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 \"$ZR_BRANCH\"" >> $ZR_VERSION_FILE
|
||||||
#echo "#define ZR_VER_BRANCH \"$(hg id -b)\"" >> $ZR_VERSION_FILE
|
echo "#define ZR_VER_REVISION \"$ZR_REVISION\"" >> $ZR_VERSION_FILE
|
||||||
echo "#define ZR_VER_REVISION \"$(hg id -n):$(hg id -i)\"" >> $ZR_VERSION_FILE
|
|
||||||
echo "#define ZR_VER_LICENSE \"$ZR_LICENSE\"" >> $ZR_VERSION_FILE
|
echo "#define ZR_VER_LICENSE \"$ZR_LICENSE\"" >> $ZR_VERSION_FILE
|
||||||
echo "#define ZR_VER_DATE \"$ZR_DATE\"" >> $ZR_VERSION_FILE
|
echo "#define ZR_VER_DATE \"$ZR_DATE\"" >> $ZR_VERSION_FILE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user