1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-03 05:31:34 +00:00

CVS --> Subversion

Note: commandline option(s) -(no)cvs changed to -(no)svn



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19082 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ivo 2006-07-14 12:57:37 +00:00
parent 7a5378e5de
commit eb85c86a2c

View File

@ -27,7 +27,7 @@ _showcont=no
_color=yes _color=yes
_head=yes _head=yes
_cvs=yes _svn=yes
_files= _files=
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -71,21 +71,28 @@ printhead() {
all_filenames() { all_filenames() {
test "$_files" != "" && echo "$_files" && return test "$_files" != "" && echo "$_files" && return
if [ "$_cvs" == "no" ]; then if [ "$_svn" == "no" ]; then
find . -type f \ find . -type f \
| grep -v "\.\#\|\~$\|\.depend\|\/CVS\/\|config.mak\|^\./config\.h" \ | grep -v "\.\#\|\~$\|\.depend\|\/\.svn\/\|config.mak\|^\./config\.h" \
| grep -v "^\./version\.h\|\.o$\|\.a$" | grep -v "^\./version\.h\|\.o$\|\.a$"
else else
list_cvs . list_svn .
fi fi
} }
list_cvs() { list_svn() {
for i in `grep "^/" $1/CVS/Entries | cut -d '/' -f 2`; do tmpfiles=`sed '/name/ba; /kind/ba; d; b;
:a; s/^ *....=\"\(.*\)\".*$/\1/;' $1/.svn/entries | \
sed '/$/N; s/\n/ /; / dir$/d; s/ file$//;'`
tmpdirs=`sed ' /name/ba; /kind/ba; d; b;
:a; s/^ *....=\"\(.*\)\".*$/\1/;' $1/.svn/entries | \
sed ' /$/N; s/\n/ /; / file$/d; /^ dir$/d; s/ dir$//;'`
for i in $tmpfiles; do
echo $1/$i echo $1/$i
done done
for j in `grep "^D/" $1/CVS/Entries | cut -d '/' -f 2`; do for j in $tmpdirs; do
list_cvs $1/$j list_svn $1/$j
done done
} }
@ -113,10 +120,10 @@ for i in "$@"; do
echo echo
printoption "color " "colored output" "$_color" printoption "color " "colored output" "$_color"
printoption "head " "print heading for each test" "$_head" printoption "head " "print heading for each test" "$_head"
printoption "cvs " "use CVS/ to determine which files to check" \ printoption "svn " "use .svn/ to determine which files to " \
"$_cvs" "check" "$_svn"
echo -e "\nIf no files are specified, the whole tree is traversed." echo -e "\nIf no files are specified, the whole tree is traversed."
echo -e "If there are, -(no)cvs has no effect.\n" echo -e "If there are, -(no)svn has no effect.\n"
exit exit
;; ;;
-charset) -charset)
@ -131,11 +138,11 @@ for i in "$@"; do
-nooll) -nooll)
_oll=no _oll=no
;; ;;
-cvs) -svn)
_cvs=yes _svn=yes
;; ;;
-nocvs) -nosvn)
_cvs=no _svn=no
;; ;;
-head) -head)
_head=yes _head=yes
@ -216,7 +223,7 @@ else
COLE="" COLE=""
fi fi
# Generate filelist once so -cvs isn't _that_ much slower than -nocvs anymore # Generate filelist once so -svn isn't _that_ much slower than -nosvn anymore
filelist=`all_filenames` filelist=`all_filenames`