반응형

This script downloads required JavaScript libraries

 

install.sh

 

 #!/usr/bin/env sh
echo "This script downloads required JavaScript libraries"

# Constants
LIBS=_libs

# If the "_libs" directory exists, delete it
if [ -d "$LIBS" ]; then
  rm -r $LIBS
fi

# Create the directory
mkdir $LIBS

 


echo
echo "############################"
echo "#                          #"
echo "# Downloading Sencha Touch #"
echo "#                          #"
echo "############################"
curl http://cdn.sencha.io/touch/sencha-touch-2.1.0-gpl.zip --output $LIBS/sencha.zip

# Extract the contents of the zip file
unzip $LIBS/sencha.zip -d $LIBS/sencha/

# Remove the zip file
rm $LIBS/sencha.zip

 


echo
echo "############################"
echo "#                          #"
echo "# Downloading Sencha Cmd   #"
echo "#                          #"
echo "############################"
curl http://cdn.sencha.io/senchacmd/SenchaCmd-3.0.0.250-osx.app.zip --output $LIBS/sencha_cmd.zip

# Extract the contents of the zip file
unzip $LIBS/sencha_cmd.zip -d $LIBS

# Execute the application contained in it (OS X only)
# open $LIBS/SenchaCmd-3.0.0.250-osx.app

# Remove the zip file
rm $LIBS/sencha_cmd.zip

 


echo
echo "######################################"
echo "#                                    #"
echo "# Downloading the latest Siesta Lite #"
echo "#                                    #"
echo "######################################"
curl http://www.bryntum.com/download/?product_id=siesta-lite --output $LIBS/siesta.zip

# Extract the contents of the zip file
unzip $LIBS/siesta.zip -d $LIBS

# Remove the zip file
rm $LIBS/siesta.zip

# Rename the folder
mv $LIBS/siesta* $LIBS/siesta

 

 

반응형

'프로그래밍 > Web' 카테고리의 다른 글

Google Maps API 웹 서비스  (0) 2013.03.28
DOM Reference - 레퍼런스  (0) 2013.03.28
[APTANA] ftp setting  (0) 2013.03.13
php의 allow_url_fopen 설정의 보안 취약점에 주의하세요  (0) 2013.03.11
CAPTCHA - chess CAPTCHA  (0) 2013.03.11

+ Recent posts