Changeset 2bd2fb8 for common


Ignore:
Timestamp:
03/30/2022 12:49:43 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
8825e69
Parents:
2fd624d
Message:

Replace $PROGNAME-commands with $COMMANDS

This allows to remove some references to PROGNAME

Location:
common/libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_book_parser

    r2fd624d r2bd2fb8  
    4747  cd $JHALFSDIR
    4848  # Clean
    49   rm -rf ${PROGNAME}-commands
     49  rm -rf "$COMMANDS"
    5050
    5151  # Extract the commands
     
    107107                 --stringparam log-level      "$LOG_LEVEL"    \
    108108                 --stringparam script-root    "$SCRIPT_ROOT"  \
    109                  --output ./${PROGNAME}-commands/             \
     109                 --output "./${COMMANDS}/"                    \
    110110                 $XSL                                         \
    111111                 prbook.xml >> $LOGDIR/$LOG 2>&1
    112112# Remove flags requesting user action in some cases. Much easier here than
    113113# in the stylesheet...
    114         sed -i 's/-iv /-v /' ./${PROGNAME}-commands/chapter??/*kernel*
     114        sed -i 's/-iv /-v /' "./${COMMANDS}/"chapter??/*kernel*
    115115      ;;
    116116    *)  echo -n " ${L_arrow}${PROGNAME}${R_arrow} book invalid, terminate build... "
     
    121121
    122122  # Make the scripts executable.
    123   chmod -R +x $JHALFSDIR/${PROGNAME}-commands
     123  chmod -R +x "$JHALFSDIR/${COMMANDS}"
    124124
    125125  # Create the packages file. We need it for proper Makefile creation
  • common/libs/func_wrt_Makefile

    r2fd624d r2bd2fb8  
    2626BASEDIR        = \$(MOUNT_PT)
    2727SRCSDIR        = \$(BASEDIR)/sources
    28 CMDSDIR        = \$(BASEDIR)/\$(SCRIPT_ROOT)/$PROGNAME-commands
     28CMDSDIR        = \$(BASEDIR)/\$(SCRIPT_ROOT)/$COMMANDS
    2929LOGDIR         = \$(BASEDIR)/\$(SCRIPT_ROOT)/$LOGDIRBASE
    3030TESTLOGDIR     = \$(BASEDIR)/\$(SCRIPT_ROOT)/$TESTLOGDIRBASE
    3131
    32 crCMDSDIR      = /\$(SCRIPT_ROOT)/$PROGNAME-commands
     32crCMDSDIR      = /\$(SCRIPT_ROOT)/$COMMANDS
    3333crLOGDIR       = /\$(SCRIPT_ROOT)/$LOGDIRBASE
    3434crTESTLOGDIR   = /\$(SCRIPT_ROOT)/$TESTLOGDIRBASE
     
    216216cat << EOF
    217217        @export LFS=\$(MOUNT_PT) && \\
    218         ${PROGNAME}-commands/`dirname $file`/\$@ >>logs/\$@$version 2>&1
     218        $COMMANDS/`dirname $file`/\$@ >>logs/\$@$version 2>&1
    219219EOF
    220220) >> $MKFILE.tmp
Note: See TracChangeset for help on using the changeset viewer.