mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
remove some legacy processing, and add more error checking for the errors I have encountered this time
This commit is contained in:
parent
c434f59fda
commit
c170d2d90d
@ -84,25 +84,30 @@ function cleanfulltree {
|
|||||||
exit ${status}
|
exit ${status}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -n "Checking SVN status... ";
|
||||||
|
revision="$(svnversion)"
|
||||||
|
regex="[[:digit:]]*"
|
||||||
|
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... ";
|
printf "removing SVN directories... ";
|
||||||
find . -depth -name '.svn' -execdir rm -rf '{}' ';'
|
find . -depth -name '.svn' -execdir rm -rf '{}' ';'
|
||||||
# -depth is needed to avoid find trying to examine directories it has just
|
# -depth is needed to avoid find trying to examine directories it has just
|
||||||
# deleted.
|
# deleted.
|
||||||
# The sort of quotes used is critical!
|
# The sort of quotes used is critical!
|
||||||
myfindrm $1 ".cvsignore"
|
|
||||||
printf "Done\n"
|
printf "Done\n"
|
||||||
|
|
||||||
printf "removing vim / emacs temp files... ";
|
printf "removing vim / emacs temp files... ";
|
||||||
myfindrm $1 "*~"
|
myfindrm $1 "*~"
|
||||||
printf "\nremoving SVN conflict files... ";
|
|
||||||
myfindrm $1 "*.mine"
|
|
||||||
myfindrm $1 "?*.r[0-9]*"
|
|
||||||
# I wonder if we should throw some sort of error if these are found,
|
|
||||||
# because we shouldn't be releasing from a working copy with conflicts?
|
|
||||||
printf "Done\n"
|
printf "Done\n"
|
||||||
|
|
||||||
|
|
||||||
printf "removing executable and other intermediate files... ";
|
printf "removing executable and other intermediate files... ";
|
||||||
myrmvf $1 audacity src/.depend src/.gchdepend
|
myrmvf $1 src/audacity src/.depend src/.gchdepend
|
||||||
myfindrm $1 config.status
|
myfindrm $1 config.status
|
||||||
myfindrm $1 config.log
|
myfindrm $1 config.log
|
||||||
myfindrm $1 Makefile
|
myfindrm $1 Makefile
|
||||||
@ -133,8 +138,9 @@ function slimtree {
|
|||||||
myrmvf $1 todo.txt
|
myrmvf $1 todo.txt
|
||||||
printf "Done\n"
|
printf "Done\n"
|
||||||
|
|
||||||
|
# we cannot remove tests/ because subsequent builds fail ...
|
||||||
printf "removing scripts and tests ... ";
|
printf "removing scripts and tests ... ";
|
||||||
myrmrvf $1 scripts tests
|
myrmrvf $1 scripts tests/ProjectCheckTests/
|
||||||
printf "Done\n"
|
printf "Done\n"
|
||||||
|
|
||||||
printf "removing libraries that should be installed locally..."
|
printf "removing libraries that should be installed locally..."
|
||||||
@ -173,23 +179,6 @@ function slimtree {
|
|||||||
printf "Done\n"
|
printf "Done\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
# fix Windows being fussy about line endings
|
|
||||||
function fixendings {
|
|
||||||
printf "Giving VC++ project/workspace files DOS line endings ... "
|
|
||||||
if [ $1 -eq 1 ]; then
|
|
||||||
for file in `find . \( -name '*.ds?' -print \) -or \( -name '*.vcproj' -print \) -or \( -name '*.sln' -print \)`
|
|
||||||
do
|
|
||||||
unix2dos "$file"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
for file in `find . \( -name '*.ds?' -print \) -or \( -name '*.vcproj' -print \) -or \( -name '*.sln' -print \)`
|
|
||||||
do
|
|
||||||
unix2dos "$file" > /dev/null 2>/dev/null
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
printf "Done\n"
|
|
||||||
}
|
|
||||||
|
|
||||||
function fixwinforslim {
|
function fixwinforslim {
|
||||||
printf "Changing Windows header so that it doesn't try to build with\n";
|
printf "Changing Windows header so that it doesn't try to build with\n";
|
||||||
printf "support for optional libraries by default.\n";
|
printf "support for optional libraries by default.\n";
|
||||||
@ -286,7 +275,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# these are the arguments we will pass to configure when it is run
|
# these are the arguments we will pass to configure when it is run
|
||||||
configargs="--enable-maintainer-mode --with-lib-preference=\"system\""
|
configargs="--enable-maintainer-mode"
|
||||||
|
|
||||||
if [[ x"$reconf" = x1 ]] ; then
|
if [[ x"$reconf" = x1 ]] ; then
|
||||||
echo "Your Makefiles are out of date or missing. (Re)running configure to"
|
echo "Your Makefiles are out of date or missing. (Re)running configure to"
|
||||||
@ -299,6 +288,10 @@ if [[ x"$reconf" = x1 ]] ; then
|
|||||||
else
|
else
|
||||||
$SHELL -c "./configure ${configargs}" > /dev/null 2>&1
|
$SHELL -c "./configure ${configargs}" > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
if [[ ${?} -ne 0 ]] ; then
|
||||||
|
echo "Error - configure exited with non-zero status!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The version number is stored in a C++ header as a set of #defines. Trying to
|
# The version number is stored in a C++ header as a set of #defines. Trying to
|
||||||
@ -309,6 +302,10 @@ fi
|
|||||||
# through the pre-processor to get the version string components where we can
|
# through the pre-processor to get the version string components where we can
|
||||||
# find them.
|
# find them.
|
||||||
|
|
||||||
|
if [[ ! -x "config.status" ]] ; then
|
||||||
|
echo "config.status is not present or executable - cannot proceed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo -n "Getting program version... "
|
echo -n "Getting program version... "
|
||||||
# first off, find out what C++ pre-processor configure has found for us to use
|
# first off, find out what C++ pre-processor configure has found for us to use
|
||||||
# (because we want the same one that will be used to build Audacity). This is a
|
# (because we want the same one that will be used to build Audacity). This is a
|
||||||
@ -366,10 +363,6 @@ printf "Done\n"
|
|||||||
# tarball, prior to building the source tarball
|
# tarball, prior to building the source tarball
|
||||||
cleanfulltree $mode;
|
cleanfulltree $mode;
|
||||||
|
|
||||||
# fix line endings issues caused by this being on *nix and CVS messing with
|
|
||||||
# line endings on the fly
|
|
||||||
fixendings $mode;
|
|
||||||
|
|
||||||
# now we have the full source tree, lets slim it down to the bits that
|
# now we have the full source tree, lets slim it down to the bits that
|
||||||
# you actually need to build audacity on a shared library system with the
|
# you actually need to build audacity on a shared library system with the
|
||||||
# relevant libraries installed on the system (e.g. Linux distros)
|
# relevant libraries installed on the system (e.g. Linux distros)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user