added check for not running when generated files are around

This commit is contained in:
maroy 2005-07-03 10:32:32 +00:00
parent ad57d08acc
commit 8fbc2ecfd6

View file

@ -21,8 +21,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# #
# Author : $Author: fgerlits $ # Author : $Author: maroy $
# Version : $Revision: 1.12 $ # Version : $Revision: 1.13 $
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/dist.sh,v $ # Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/dist.sh,v $
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
@ -113,9 +113,16 @@ echo "";
echo " output directory: $directory"; echo " output directory: $directory";
echo " package version number: $version"; echo " package version number: $version";
echo "" echo ""
echo "WARNING! make sure to run this script on a freshly checked-out copy";
echo " of LiveSupport, with NO generated files!";
echo "" #-------------------------------------------------------------------------------
# Check if there are generated files, and bail out if so
#-------------------------------------------------------------------------------
if [ -f $basedir/Makefile ]; then
echo "ERROR: make sure to run this script on a freshly checked-out copy";
echo " of LiveSupport, with NO generated files!";
exit 1;
fi
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------