Skip to content

Instantly share code, notes, and snippets.

@halfnibble
Last active August 29, 2015 14:22
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 halfnibble/e85efd2a49eb59e5fc0b to your computer and use it in GitHub Desktop.
Save halfnibble/e85efd2a49eb59e5fc0b to your computer and use it in GitHub Desktop.
Install script for my hosted zip archive of compiled playbook-dev-tools
#!/bin/sh
export NATIVE_TOOLS="/accounts/1000/shared/documents/clitools"
export NATIVE_TOOLS_URL="http://halfnibble.com/bbdev/"
# Write the QNX_CONFIGURATION file
CONFFILE="etc/qnxconf/qconfig/qnx_blackberry_native_development_kit_2.1.0.xml"
# unpack
unzip pbhome.zip
cp pbpkgadd bin/
for pkg in packages/*.zip
do
./bin/pbpkgadd $pkg
done
. ./env.sh
cd
if [ ! -e .profile ]; then
cp "$NATIVE_TOOLS/sample_profile" .profile
else
echo "You already have a .profile."
echo "You can set up your paths by sourcing $NATIVE_TOOLS/env.sh"
echo "See $NATIVE_TOOLS/sample_profile for a snippet that does this"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment