/[Frey]/trunk/bin/checkout-js.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/checkout-js.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 887 by dpavlin, Tue Dec 16 14:09:50 2008 UTC revision 888 by dpavlin, Wed Dec 24 20:05:14 2008 UTC
# Line 1  Line 1 
1  cd static/js || exit  #!/bin/sh
   
 function svn_upstream() {  
         url=$1  
         dir=$2  
         echo "** svn $url -> $dir"  
         test -d $dir/.svn && cd $dir && svn update || svn co $url $dir && cd -  
 }  
 function git_upstream() {  
         url=$1  
         dir=`echo $1 | sed -e 's!^.*/\([^/]*\).git$!\1!'`  
         echo "** git $url -> $dir"  
         test -d $dir/.git && cd $dir && git pull || git clone $url && cd -  
 }  
2    
3  function hg_upstream() {  source bin/checkout-upstream.sh
         url=$1  
         dir=`echo $1 | sed -e 's!^.*/\([^/]*\)$!\1!'`  
         echo "** hg $url -> $dir"  
         test -d $dir/.hg && cd $dir && hg pull || hg clone $url && cd -  
 }  
4    
5    cd static/js || exit
6    
7  wget -nc http://extjs.com/deploy/ext-2.2.zip  wget -nc http://extjs.com/deploy/ext-2.2.zip
8  unzip -u `ls -c ext*.zip | head -1`  unzip -u `ls -c ext*.zip | head -1`

Legend:
Removed from v.887  
changed lines
  Added in v.888

  ViewVC Help
Powered by ViewVC 1.1.26