Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (36 sloc) 0.898 kb
#!/bin/bash
#
# Simple deployment script. Can create a zip file from all
# files or can copy to a Joomla! folder (to update an
# existing installation)
#
# set to the joomla directory you want to deploy to:
dstdir=
# internal variables to be updated when files are added:
extname=bfstop
sqlfiles="sql"
srcfiles="$extname.php helpers $extname.xml $sqlfiles setupscripts.php index.html"
langfiles="language"
docs="CHANGELOG LICENSE.txt README"
plgtype="system"
langs="de-DE en-GB"
version=0.9.11
if [ "$1" == "zip" ]
then
zip -r $extname-$version.zip $srcfiles $docs $langfiles
exit
fi
if [ "$1" != "" ]
then
dstdir=$1
fi
if [ "$dstdir" == "" ]
then
echo "You have to set dstdir variable first (to the joomla directory you want to deploy to)"
exit
fi
cp -r $srcfiles $dstdir/plugins/$plgtype/$extname/
for lang in $langs
do
cp language/$lang/* $dstdir/administrator/language/$lang/
done
Jump to Line
Something went wrong with that request. Please try again.