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 66 lines (62 sloc) 1.286 kB
#!/bin/bash
FIREFOX=0
SAFARI=0
CHROME=0
UPLOAD=""
if [[ "$1" == "-noupload" ]]; then
UPLOAD="-noupload"
shift
elif [[ "$1" == "--noupload" ]]; then
UPLOAD="-noupload"
shift
elif [[ "$1" == "--no-upload" ]]; then
UPLOAD="-noupload"
shift
fi
until [ -z "$1" ]
do
ARG=`echo $1 | tr '[A-Z]' '[a-z]'`
case "$ARG" in
"all" )
FIREFOX=1
SAFARI=1
CHROME=1
;;
"f" | "ff" | "firefox" )
FIREFOX=1
;;
"s" | "safari" )
SAFARI=1
;;
"c" | "c" | "chrome" )
CHROME=1
;;
* )
echo "Invalid parameter: $1"
exit 1
;;
esac
shift
done
if [[ "$CHROME" -eq "1" ]]; then
echo "Building Chrome Extension"
./buildChrome.sh $UPLOAD > /dev/null
fi
if [[ "$FIREFOX" -eq "1" ]]; then
echo "Building Firefox Add-On"
./buildFirefox.sh $UPLOAD > /dev/null
fi
if [[ "$SAFARI" -eq "1" ]]; then
echo "Uploading Safari Extension"
./uploadSafari.sh $UPLOAD
fi
if [[ "$UPLOAD" == "" ]]; then
echo "Changing index version info"
./changeIndexVersion.sh
read -p "Change update version? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Changing update version info"
./changeUpdateVersion.sh
fi
echo ""
fi
Jump to Line
Something went wrong with that request. Please try again.