Author: pierre
Date: Wed Nov  1 07:40:53 2017
New Revision: 4014

Log:
Warn before cleaning BUILDDIR; see #1711

Modified:
   jhalfs/trunk/common/common-functions

Modified: jhalfs/trunk/common/common-functions
==============================================================================
--- jhalfs/trunk/common/common-functions        Wed Nov  1 07:40:09 2017        
(r4013)
+++ jhalfs/trunk/common/common-functions        Wed Nov  1 07:40:53 2017        
(r4014)
@@ -60,6 +60,14 @@
       echo "Looks like kernel filesystems are still mounted on $BUILDDIR."
       exit 1
     else
+      if [ $JHALFSDIR/*gcc-pass1 != $JHALFSDIR/'*gcc-pass1' ]; then
+        echo -n "$BUILDDIR contains already built packages. Clean anyway? 
yes/no (yes): "
+        read ANSWER
+        if [ x${ANSWER:0:1} = "xn" -o x${ANSWER:0:1} = "xN" ] ; then
+          echo "${nl_}Rerun and change the option in the menu.${nl_}"
+          exit 1
+        fi
+      fi
       # Clean the build directory
       echo -n "Cleaning $BUILDDIR ..."
       # First delete proc and sys directories, if they exist.
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to