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 "
| Attachment | Size |
|---|---|
| as3script.zip | 20.63 KB |

It works perfectly. Thank
It works perfectly. Thank you Joachim!
Where can I download the
Where can I download the bundle? I don't understand all the code.. do I run this in Terminal?
Thanks.
This script will download
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)
Great tips, add to bookmark.
Great tips, add to bookmark. Thanks.
i dont get it, where is the
i dont get it, where is the file to download?
download the attachment
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
then you can run as frequent as you like