File: update-all

package info (click to toggle)
phpdoc 20050512-1
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 36,592 kB
  • ctags: 1,501
  • sloc: xml: 376,768; php: 6,708; cpp: 500; makefile: 293; perl: 161; sh: 151; awk: 28
file content (53 lines) | stat: -rwxr-xr-x 1,115 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
51
52
53
#!/bin/bash
# taken from cvs.php.net/functable by Harmut


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
if [ -d php_4_cvs ]
 then
  (cd php_4_cvs; cvs update 2>&1 | grep -v "^. php_4_cvs" | grep -v Updating)
else
  cvs -d ":pserver:cvsread@cvs.php.net:/repository" get -d php_4_cvs -r PHP_4_3 php-src
fi


# 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
if [ -d php_5_cvs ]
 then
  (cd php_5_cvs; cvs update 2>&1 | grep -v "^. php_5_cvs" | grep -v Updating)
else
  cvs -d ":pserver:cvsread@cvs.php.net:/repository" get -d php_5_cvs -r HEAD php-src
fi