From dada9dc718a362d1cac47e412cec93636ed938ae Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Fri, 21 Aug 2009 23:45:21 -0400 Subject: [PATCH 1/1] git-rcsimport: More portability fixes. Signed-off-by: Geoffrey Thomas --- git-rcsimport | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.45.0