Updated packaging script to include zrtools binaries.
This commit is contained in:
parent
cbbcc2caa8
commit
f784b10c87
28
build.sh
28
build.sh
@ -6,21 +6,22 @@ ZIPFILE=$(hg id -b)-$(hg id -n).zip
|
|||||||
|
|
||||||
PLUGINFILES="cstrike/*"
|
PLUGINFILES="cstrike/*"
|
||||||
DOCS="docs/*"
|
DOCS="docs/*"
|
||||||
DOCS_DEST=zrdocs
|
DOCS_DEST=$RELEASEDIR/zrdocs
|
||||||
PLUGINFILE=zombiereloaded.smx
|
PLUGINFILE=zombiereloaded.smx
|
||||||
PLUGINDIR=addons/sourcemod/plugins
|
PLUGINDIR=$RELEASEDIR/addons/sourcemod/plugins
|
||||||
|
ZRTOOLS_SOURCE=/home/zrdev/archive/zrtools
|
||||||
|
EXTENSIONDIR=$RELEASEDIR/addons/sourcemod/extensions
|
||||||
|
|
||||||
# Clean release directory if specified and exit.
|
# Clean release directory if specified and exit.
|
||||||
if [ "$1" = "clean" ]
|
if [ "$1" = "clean" ]
|
||||||
then
|
then
|
||||||
rm -r $RELEASEDIR
|
rm -rf $RELEASEDIR
|
||||||
echo "Cleaned release directory."
|
echo "Cleaned release directory."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make release directories.
|
# Make release directory.
|
||||||
mkdir -p $RELEASEDIR
|
mkdir -p $RELEASEDIR
|
||||||
mkdir -p $RELEASEDIR/$DOCS_DEST
|
|
||||||
|
|
||||||
# Check if the plugin is built.
|
# Check if the plugin is built.
|
||||||
if [ ! -e $BUILDDIR/$PLUGINFILE ]
|
if [ ! -e $BUILDDIR/$PLUGINFILE ]
|
||||||
@ -30,12 +31,21 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy files.
|
# Copy files.
|
||||||
echo "Copying files..."
|
echo "Copying plugin files..."
|
||||||
cp -r $PLUGINFILES $RELEASEDIR
|
cp -r $PLUGINFILES $RELEASEDIR
|
||||||
cp -r $DOCS $RELEASEDIR/$DOCS_DEST
|
|
||||||
|
|
||||||
mkdir -p $RELEASEDIR/$PLUGINDIR
|
echo "Copying documentation..."
|
||||||
cp -r $BUILDDIR/$PLUGINFILE $RELEASEDIR/$PLUGINDIR/$PLUGINFILE
|
mkdir -p $DOCS_DEST
|
||||||
|
cp -r $DOCS $DOCS_DEST
|
||||||
|
|
||||||
|
echo "Copying plugin binaries..."
|
||||||
|
mkdir -p $PLUGINDIR
|
||||||
|
cp -r $BUILDDIR/$PLUGINFILE $PLUGINDIR/$PLUGINFILE
|
||||||
|
|
||||||
|
echo "Copying extension binaries..."
|
||||||
|
mkdir -p $EXTENSIONDIR
|
||||||
|
cp $ZRTOOLS_SOURCE/zrtools.ext.so $EXTENSIONDIR
|
||||||
|
cp $ZRTOOLS_SOURCE/zrtools.ext.dll $EXTENSIONDIR
|
||||||
|
|
||||||
# Make release package.
|
# Make release package.
|
||||||
echo "Compressing files..."
|
echo "Compressing files..."
|
||||||
|
@ -4943,6 +4943,10 @@ href="http://forums.alliedmods.net/forumdisplay.php?f=132">Zombie:Reloaded forum
|
|||||||
or similar in the thread title.</li>
|
or similar in the thread title.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<p>Browseable source code repositories: <a href="http://helgeby.no-ip.org/zrdev/hg">Zombie:Reloaded
|
||||||
|
Source</a></p>
|
||||||
|
|
||||||
|
|
||||||
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10"
|
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10"
|
||||||
height="31" width="88" alt="Valid XHTML 1.0 Strict" class="noborder" /></a></p>
|
height="31" width="88" alt="Valid XHTML 1.0 Strict" class="noborder" /></a></p>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user