1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

Added removal of ".git" and ".gitignore" when building minsrc tarball

And removed SVN bits...
This commit is contained in:
Leland Lucius 2015-06-30 16:05:11 -05:00
parent b99f1b90fb
commit 08c0663624

View File

@ -64,21 +64,9 @@ function cleanfulltree {
exit ${status} exit ${status}
fi fi
printf "Checking SVN status ... " printf "removing GIT directories ... "
revision="$(svnversion)" myrmrvf $1 .git .gitignore
regex="[[:digit:]]*" myrmrvf $1 .gitignore
if [[ ${revision} =~ ${regex} ]] ; then
echo "Unmodified working copy at revision ${revision}"
else
echo "Modified working copy! Release tarballs must be built from an unmodified working copy! Exiting"
exit
fi
printf "removing SVN directories ... "
find . -depth -name '.svn' -execdir rm -rf '{}' ';'
# -depth is needed to avoid find trying to examine directories it has just
# deleted.
# The sort of quotes used is critical!
printf "Done\n" printf "Done\n"
printf "removing vim / emacs temp files ... " printf "removing vim / emacs temp files ... "
@ -106,13 +94,13 @@ function cleanfulltree {
myrmrvf $1 dox myrmrvf $1 dox
printf "Done\n" printf "Done\n"
printf "removing unused libraries from SVN tree ..." printf "removing unused libraries from GIT tree ..."
myrmrvf $1 lib-src/portmidi myrmrvf $1 lib-src/portmidi
myrmrvf $1 lib-src/libscorealign myrmrvf $1 lib-src/libscorealign
printf "Done\n" printf "Done\n"
} }
# remove all the things we have in SVN for convenience rather than being # remove all the things we have in GIT for convenience rather than being
# necessary # necessary
function slimtree { function slimtree {
printf "removing todo lists ... " printf "removing todo lists ... "