flex

original frameworks added 2 update script for as3 and flex bundle

Few weeks ago, I noticed that the frameworks didn't update. After a little investigation I noticed that the update script from the actionscript bundle was gone. After looking around, on my drive and online without success. I finally saw a news post about the bundle on Simon Gregory's web page - http://blog.simongregory.com/ . Thanks to his help I could now put the original framework checkouts into the script.

now after a few months a notice that the attachment was not publicly available, so here it is !

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 "

update to script for actionscript 3 and flex bundle

little update

  • to know what is updating
  • export LC_CTYPE=en_US.UTF-8


mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
export LC_CTYPE=en_US.UTF-8
echo "... update Flex bundle"
svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/Flex.tmbundle
echo "... update As3 bundle"
svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/ActionScript\ 3.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

have fun !!

Syndicate content
Theme provided by Danang Probo Sayekti.