Changeset 8b85dae for jhalfs


Ignore:
Timestamp:
07/10/2020 01:26:23 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
6f74ca1
Parents:
e3ccc27
Message:

Prevent users to tick "Rebuild Makefile" if Makefile does not exist

For some reason, beginners tend to tick this at the first pass. Since
it is hard to prevent that in Config.in, use a sanity check in jhalfs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    re3ccc27 r8b85dae  
    476476fi
    477477
     478# shellcheck disable=SC2034
     479if [[ "$REBUILD_MAKEFILE" = "y" ]] ; then
     480# Sanity check: users tend to tick "rebuild Makefile"
     481# without generating one first. Check we have one:
     482  if [ ! -f $MKFILE ]; then
     483    set -e
     484    error_message "You cannot \"rebuild Makefile\" without first building one"
     485  fi
    478486# When regenerating the Makefile, we need to know also the
    479487# canonical book version
    480 # shellcheck disable=SC2034
    481 if [[ "$REBUILD_MAKEFILE" = "y" ]] ; then
    482488  case $PROGNAME in
    483489    clfs* )
Note: See TracChangeset for help on using the changeset viewer.