File: update-all

package info (click to toggle)
php-doc 20061001-1
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 45,764 kB
  • ctags: 1,611
  • sloc: xml: 502,485; php: 7,645; cpp: 500; makefile: 297; perl: 161; sh: 141; awk: 28
file content (50 lines) | stat: -rwxr-xr-x 1,110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# taken from cvs.php.net/functable by Harmut
PHP_4_CVS=PHP_4_4
PHP_5_CVS=PHP_5_1
PHP_6_CVS=HEAD


if [ ! -d sources ] 
then
	mkdir sources
fi

cd sources

# getting php4 releases
for release in `xargs echo < ../version4.tags`
 do
  if [ ! -d $release ]
   then 
    echo fetching $release from cvs
    ../cvs-get-release php-src $release
  else
    echo $release already there
  fi
done

# getting php4 latest developement snapshot
echo updating php4 cvs
cvs -q -d ":pserver:cvsread@cvs.php.net:/repository" co -d php_4_cvs -r $PHP_4_CVS php-src


# getting php5 releases
for release in `xargs echo < ../version5.tags`
 do
  if [ ! -d $release ]
   then 
    echo fetching $release from cvs
    ../cvs-get-release php-src $release
  else
    echo $release already there
  fi
done

# getting php5 latest developement snapshot
echo updating php5 cvs
cvs -q -d ":pserver:cvsread@cvs.php.net:/repository" co -d php_5_cvs -r $PHP_5_CVS php-src

# getting php6 latest developement snapshot
echo updating php6 cvs
cvs -q -d ":pserver:cvsread@cvs.php.net:/repository" co -d php_6_cvs -r $PHP_6_CVS php-src