From cbbcc2caa8931b6f99090c41bafcf4b8e477fbfa Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 17 Nov 2009 16:25:26 +0100 Subject: [PATCH] Updated package script to build according to SourceMod packaging guidelines. Hid the developers manual so it won't be included in release package. --- build.sh | 14 ++++++++------ docs/{zr_dev_manual.txt => .zr_dev_manual.txt} | 0 2 files changed, 8 insertions(+), 6 deletions(-) rename docs/{zr_dev_manual.txt => .zr_dev_manual.txt} (100%) diff --git a/build.sh b/build.sh index ceabfde..844266b 100644 --- a/build.sh +++ b/build.sh @@ -4,10 +4,11 @@ RELEASEDIR=release BUILDDIR=build ZIPFILE=$(hg id -b)-$(hg id -n).zip -PLUGINFILES=cstrike -DOCS=docs +PLUGINFILES="cstrike/*" +DOCS="docs/*" +DOCS_DEST=zrdocs PLUGINFILE=zombiereloaded.smx -PLUGINDIR=cstrike/addons/sourcemod/plugins +PLUGINDIR=addons/sourcemod/plugins # Clean release directory if specified and exit. if [ "$1" = "clean" ] @@ -17,8 +18,9 @@ then exit 0 fi -# Make release directory. +# Make release directories. mkdir -p $RELEASEDIR +mkdir -p $RELEASEDIR/$DOCS_DEST # Check if the plugin is built. if [ ! -e $BUILDDIR/$PLUGINFILE ] @@ -29,8 +31,8 @@ fi # Copy files. echo "Copying files..." -cp -r "$PLUGINFILES" "$RELEASEDIR" -cp -r "$DOCS" "$RELEASEDIR" +cp -r $PLUGINFILES $RELEASEDIR +cp -r $DOCS $RELEASEDIR/$DOCS_DEST mkdir -p $RELEASEDIR/$PLUGINDIR cp -r $BUILDDIR/$PLUGINFILE $RELEASEDIR/$PLUGINDIR/$PLUGINFILE diff --git a/docs/zr_dev_manual.txt b/docs/.zr_dev_manual.txt similarity index 100% rename from docs/zr_dev_manual.txt rename to docs/.zr_dev_manual.txt