File: cvs-get-release

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 (11 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# taken from cvs.php.net/functable by Harmut

if [ $# -ne 2 ] 
then
  echo 1>&2 "usage: $0 repository release-tag";
  exit 3;
fi
cvs -d ":pserver:cvsread@cvs.php.net:/repository" get -d $2 -r $2 $1 >/dev/null 2>&1 | grep -v Updating
find $2 -type f -and -not -name "*.[chly]" -and -not -name "*.ec" -and -not -name "*.lex" | xargs rm -f 
while ( find $2 -depth -type d -and -empty | xargs rm -r 2>/dev/null ) ; do true ; done