Skip to content

Commit

Permalink
add noupload option to build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jcutler committed May 26, 2011
1 parent a227f90 commit 1cea068
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
12 changes: 9 additions & 3 deletions build/build
Expand Up @@ -2,6 +2,12 @@
FIREFOX=0
SAFARI=0
CHROME=0
UPLOAD=""

if [[ "$1" == "-noupload" ]]; then
UPLOAD="-noupload"
shift
fi

until [ -z "$1" ]
do
Expand Down Expand Up @@ -31,13 +37,13 @@ done

if [[ "$CHROME" -eq "1" ]]; then
echo "Building Chrome Extension"
./buildChrome.sh > /dev/null
./buildChrome.sh $UPLOAD > /dev/null
fi
if [[ "$FIREFOX" -eq "1" ]]; then
echo "Building Firefox Add-On"
./buildFirefox.sh > /dev/null
./buildFirefox.sh $UPLOAD > /dev/null
fi
if [[ "$SAFARI" -eq "1" ]]; then
echo "Uploading Safari Extension"
./uploadSafari.sh
./uploadSafari.sh $UPLOAD
fi
4 changes: 4 additions & 0 deletions build/buildChrome.sh
Expand Up @@ -11,4 +11,8 @@ fi
"c:/Program Files/7-Zip/7z.exe" a chrome-build/missinge.zip MissingE
rm -rf MissingE

if [[ "$1" == "-noupload" ]]; then
exit 0
fi

"c:/Documents and Settings/Administrator/Local Settings/Application Data/Google/Chrome/Application/chrome.exe" "https://chrome.google.com/webstore/developer/edit/bcjbagclppcgdbpobcpoojdjdmcjhpid?hl=en-US"
7 changes: 6 additions & 1 deletion build/buildFirefox.sh
Expand Up @@ -40,6 +40,11 @@ cd $BUILDDIR

rm -rf missinge

cd $CWD

if [[ "$1" == "-noupload" ]]; then
exit 0
fi

"c:/Program Files/Mozilla Firefox/firefox.exe" "https://addons.mozilla.org/en-US/developers/addon/missing-e/versions/#version-upload"

cd $CWD
4 changes: 4 additions & 0 deletions build/uploadSafari.sh
@@ -1,3 +1,7 @@
if [[ "$1" == "-noupload" ]]; then
exit 0
fi

str=`grep -A 1 CFBundleShortVersionString ../missinge.safariextension/Info.plist | grep string | awk -F '[<>]' '{print $3}'`
num=`grep -A 1 CFBundleVersion ../missinge.safariextension/Info.plist | grep string | awk -F '[<>]' '{print $3}'`

Expand Down

0 comments on commit 1cea068

Please sign in to comment.