Skip to content

Instantly share code, notes, and snippets.

@takinbo
Created August 23, 2010 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takinbo/544610 to your computer and use it in GitHub Desktop.
Save takinbo/544610 to your computer and use it in GitHub Desktop.
#!/bin/sh
#----------------------------------------------+
# If you happen to do BlackBerry Application |
# development with PhoneGap on Linux, this |
# utility will come in handy. It automates |
# copying the phonegap library files to your |
# BlackBerry project. This should should be |
# copied to your extracted phonegap-blackberry |
# directory. |
#----------------------------------------------+
read -p 'BlackBerry Project Path: ' projectdir
# remove trailing slash
projectdir=${projectdir%'/'}
if [ -d "$projectdir" ] && [ -d "$projectdir/src" ];
then
echo "Copying files..."
cp -R framework/example "$projectdir/src";
cp -R framework/src/com "$projectdir/src";
mv "$projectdir/src/example" "$projectdir/src/www";
for i in js/*; do cat $i >> phonegap.js; done;
mv phonegap.js "$projectdir/src/www";
echo "Done."
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment