Updated package script to build according to SourceMod packaging guidelines. Hid the developers manual so it won't be included in release package.
This commit is contained in:
parent
66ed43dd48
commit
cbbcc2caa8
14
build.sh
14
build.sh
@ -4,10 +4,11 @@ RELEASEDIR=release
|
|||||||
BUILDDIR=build
|
BUILDDIR=build
|
||||||
ZIPFILE=$(hg id -b)-$(hg id -n).zip
|
ZIPFILE=$(hg id -b)-$(hg id -n).zip
|
||||||
|
|
||||||
PLUGINFILES=cstrike
|
PLUGINFILES="cstrike/*"
|
||||||
DOCS=docs
|
DOCS="docs/*"
|
||||||
|
DOCS_DEST=zrdocs
|
||||||
PLUGINFILE=zombiereloaded.smx
|
PLUGINFILE=zombiereloaded.smx
|
||||||
PLUGINDIR=cstrike/addons/sourcemod/plugins
|
PLUGINDIR=addons/sourcemod/plugins
|
||||||
|
|
||||||
# Clean release directory if specified and exit.
|
# Clean release directory if specified and exit.
|
||||||
if [ "$1" = "clean" ]
|
if [ "$1" = "clean" ]
|
||||||
@ -17,8 +18,9 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make release directory.
|
# Make release directories.
|
||||||
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 ]
|
||||||
@ -29,8 +31,8 @@ fi
|
|||||||
|
|
||||||
# Copy files.
|
# Copy files.
|
||||||
echo "Copying files..."
|
echo "Copying files..."
|
||||||
cp -r "$PLUGINFILES" "$RELEASEDIR"
|
cp -r $PLUGINFILES $RELEASEDIR
|
||||||
cp -r "$DOCS" "$RELEASEDIR"
|
cp -r $DOCS $RELEASEDIR/$DOCS_DEST
|
||||||
|
|
||||||
mkdir -p $RELEASEDIR/$PLUGINDIR
|
mkdir -p $RELEASEDIR/$PLUGINDIR
|
||||||
cp -r $BUILDDIR/$PLUGINFILE $RELEASEDIR/$PLUGINDIR/$PLUGINFILE
|
cp -r $BUILDDIR/$PLUGINFILE $RELEASEDIR/$PLUGINDIR/$PLUGINFILE
|
||||||
|
Loading…
Reference in New Issue
Block a user