update for as3 and flex bundle script

  • check for svn
  • path parameters
  • checkout of GetBundle
  • download as3 api through script of as3 bundle
  • two more api to download to your api folder

download at the bottom of the post

#!/bin/bash

#--- Change these paths to your preferences
#--- full paths are necessaire, no trailing slash !
AS_BUNDLES="/Library/Application Support/TextMate/Bundles"
AS3_LIB_PATH="/Users/joachimvdh/Flex/libs"

#------------------------------------------------------------------------
#--- leave the rest of the script alone - this supposed to work out of the box

#--------- check is svn client is available
for tool in svn; do
if ! type $tool >/dev/null 2>&1; then
echo "ERROR: \"$tool\" not found."
echo " This is needed to check out the bundles and api's"
echo " http://downloads.open.collab.net/binaries.html"
exit 2
fi
done

#--------- updating Flex, As3 and getBundle bundles
mkdir -p "$AS_BUNDLES"
cd "$AS_BUNDLES"
export LC_CTYPE=en_US.UTF-8
echo "... update Flex bundle"
svn checkout http://macromates.com/svn/Bundles/trunk/Review/Bundles/Flex.tmbundle
echo "... update As3 bundle"
svn checkout http://macromates.com/svn/Bundles/trunk/Review/Bundles/ActionScript\ 3.tmbundle
echo "... update GetBundle bundle"
cd ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundles
svn checkout http://macromates.com/svn/Bundles/trunk/Bundles/GetBundle.tmbundle

#--------- reloading bundles
echo "... reloading bundles"
osascript -e 'tell app "TextMate" to reload bundles'

#--------- updating as3 - libs throught tm as3 bundle
echo "... update as3 api's included through as3-bundles"
"$AS_BUNDLES/ActionScript 3.tmbundle/Support/lib/as3_libs_update.sh" $AS3_LIB_PATH;

#--------- adding extra api's
cd "$AS3_LIB_PATH"

echo "... update flextoolbox api - Flex Toolbox Components"
mkdir -p com/flextoolbox
svn checkout http://flextoolbox.googlecode.com/svn/trunk/source/com/flextoolbox com/flextoolbox

echo "... update flashtoolbox api - instant messenger client"
mkdir -p com/flashtoolbox
svn checkout http://mumblemessenger.googlecode.com/svn/trunk/MumbleLib/com/flashtoolbox/ com/flashtoolbox

echo "... Finished "

AttachmentSize
as3script.zip20.63 KB

6 comments

by joachim on 2 August, 2007 - 09:07

This script will download the bundle.
The only thing you have to do is change the paths in the file to your desired paths.

then open terminal ( or iTerm)

the first time make the script executable by changing rights of the file with :
$ chmod +x updateAs3FlexBundle.sh

then you can run as frequent as you like
$ ./updateAs3FlexBundle.sh

these instructions you can also find in the readme file (in as3script.zip)

by joachim on 19 November, 2007 - 22:44

download the attachment above -> as3script.zip ( at the bottom of the script source , just above the first comment)
unzip
then open terminal ( or iTerm)
the first time to make it executable

$ chmod +x updateAs3FlexBundle.sh

then you can run as frequent as you like

./updateAs3FlexBundle.sh

User login

Individual Member

© 2010 Your Name. Drupal theme by Kiwi Themes.