/[Frey]/trunk/bin/checkout-upstream.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

Contents of /trunk/bin/checkout-upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 888 - (show annotations)
Wed Dec 24 20:05:14 2008 UTC (15 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 550 byte(s)
checkout upstream, patch and compile modified flv-player
1 # checkout or update from upstream repository
2
3 function svn_upstream() {
4 url=$1
5 dir=$2
6 echo "** svn $url -> $dir"
7 test -d $dir/.svn && cd $dir && svn update || svn co $url $dir && cd -
8 }
9 function git_upstream() {
10 url=$1
11 dir=`echo $1 | sed -e 's!^.*/\([^/]*\).git$!\1!'`
12 echo "** git $url -> $dir"
13 test -d $dir/.git && cd $dir && git pull || git clone $url && cd -
14 }
15
16 function hg_upstream() {
17 url=$1
18 dir=`echo $1 | sed -e 's!^.*/\([^/]*\)$!\1!'`
19 echo "** hg $url -> $dir"
20 test -d $dir/.hg && cd $dir && hg pull || hg clone $url && cd -
21 }
22

  ViewVC Help
Powered by ViewVC 1.1.26