From: Geoffrey Thomas Date: Sat, 22 Aug 2009 03:45:21 +0000 (-0400) Subject: git-rcsimport: More portability fixes. X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/commitdiff_plain/dada9dc718a362d1cac47e412cec93636ed938ae?hp=43232a87e97fce006f78143bb3b5332e19899a46 git-rcsimport: More portability fixes. Signed-off-by: Geoffrey Thomas --- diff --git a/git-rcsimport b/git-rcsimport index 44f77a3..b6f977e 100755 --- a/git-rcsimport +++ b/git-rcsimport @@ -12,11 +12,11 @@ if [ ! -d "$dir/RCS" ]; then exit 1 fi -tmpdir=`mktemp -d` +tmpdir=`mktemp -d -t git-rcsimport` mkdir "$tmpdir/CVSROOT" "$tmpdir/locks" "$tmpdir/rcs" echo "LockDir=$tmpdir/locks" > "$tmpdir/CVSROOT/config" absdir=`cd "$dir"; pwd` -(cd "$absdir"; find -name RCS -type d) | while read dir; do +(cd "$absdir"; find . -name RCS -type d) | while read dir; do rcsdir=$tmpdir/rcs/`dirname "$dir"` mkdir -p "$rcsdir" ln -s "$absdir/$dir"/* "$rcsdir"