cleanup .svn directories
This commit is contained in:
parent
df7724b083
commit
16c95bb04a
@ -40,6 +40,8 @@ else
|
|||||||
read rep
|
read rep
|
||||||
if test $rep = 'y';then
|
if test $rep = 'y';then
|
||||||
rm -rf $topdir/*
|
rm -rf $topdir/*
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -58,11 +60,20 @@ desktop/recoll.png desktop/recoll-searchgui.desktop"
|
|||||||
$TAR chf - $files | (cd $topdir; $TAR xf -)
|
$TAR chf - $files | (cd $topdir; $TAR xf -)
|
||||||
|
|
||||||
# Remove any install dependancy
|
# Remove any install dependancy
|
||||||
chmod +w $topdir/Makefile
|
chmod +w $topdir/Makefile || exit 1
|
||||||
sed -e '/^install:/c\
|
sed -e '/^install:/c\
|
||||||
install: ' < $topdir/Makefile > $topdir/toto && \
|
install: ' < $topdir/Makefile > $topdir/toto && \
|
||||||
mv $topdir/toto $topdir/Makefile
|
mv $topdir/toto $topdir/Makefile
|
||||||
|
|
||||||
|
# Clean up .svn directories from target. This would be easier with a
|
||||||
|
# --exclude tar option, but we want this to work with non-gnu tars
|
||||||
|
cd $topdir || exit 1
|
||||||
|
svndirs=`find . -name .svn -print`
|
||||||
|
echo "In: `pwd`. Removing $svndirs ok ?"
|
||||||
|
read rep
|
||||||
|
test "$rep" = 'y' -o "$rep" = 'Y' && rm -rf $svndirs
|
||||||
|
|
||||||
|
cd $targetdir
|
||||||
|
|
||||||
(cd $targetdir ; \
|
(cd $targetdir ; \
|
||||||
$TAR chf - $topdirsimple | \
|
$TAR chf - $topdirsimple | \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user