Created
August 23, 2010 01:57
-
-
Save takinbo/544610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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