Ignore:
Timestamp:
11/01/2017 02:40:53 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
ce99eb6
Parents:
9556f88
Message:

Warn before cleaning BUILDDIR; see #1711

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r9556f88 re6ed1a1  
    6161      exit 1
    6262    else
     63      if [ $JHALFSDIR/*gcc-pass1 != $JHALFSDIR/'*gcc-pass1' ]; then
     64        echo -n "$BUILDDIR contains already built packages. Clean anyway? yes/no (yes): "
     65        read ANSWER
     66        if [ x${ANSWER:0:1} = "xn" -o x${ANSWER:0:1} = "xN" ] ; then
     67          echo "${nl_}Rerun and change the option in the menu.${nl_}"
     68          exit 1
     69        fi
     70      fi
    6371      # Clean the build directory
    6472      echo -n "Cleaning $BUILDDIR ..."
Note: See TracChangeset for help on using the changeset viewer.