OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2001-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
[pf3gnuchains/gcc-fork.git]
/
contrib
/
newcvsroot
diff --git
a/contrib/newcvsroot
b/contrib/newcvsroot
index
4ce1352
..
43e8e07
100755
(executable)
--- a/
contrib/newcvsroot
+++ b/
contrib/newcvsroot
@@
-6,6
+6,11
@@
# Usage: newcvsroot <newroot> <modulename> <toplevel directory>
# Usage: newcvsroot <newroot> <modulename> <toplevel directory>
+if [ $# != 3 ]; then
+ echo "usage: `basename $0` <newroot> <modulename> <toplevel directory>"
+ exit 1
+fi
+
root=$1; shift
module=$1; shift
topdir=$1; shift
root=$1; shift
module=$1; shift
topdir=$1; shift
@@
-19,10
+24,10
@@
esac
find $topdir \( -name Repository -o -name Root \) -print | while read f; do
case "$f" in
find $topdir \( -name Repository -o -name Root \) -print | while read f; do
case "$f" in
-*/CVS/Root) echo $root >
$f
;;
+*/CVS/Root) echo $root >
"$f"
;;
*/CVS/Repository)
r=${module}${f#${topdir}}
*/CVS/Repository)
r=${module}${f#${topdir}}
- echo >
$f
$rep/${r%/CVS/Repository}
+ echo >
"$f"
$rep/${r%/CVS/Repository}
;;
esac
;;
esac