Changeset e7655b2 for common


Ignore:
Timestamp:
10/16/2006 10:59:45 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
7b6ecc5
Parents:
53f291f
Message:

Added the ability to create custom scripts that do not reference tarballs.. self contained bash scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/custom_pkgs

    r53f291f re7655b2  
    3838    echo "$tab_${GREEN}Adding${OFF} ${THIS_SCRIPT}"
    3939
     40      # Create a Makefile entry
     41    if [[ "x${PKG}" = "x" ]]; then
     42    # Create an entry for a self contained cmd script that does not reference a package tarball
     43( cat << EOF
     44
     45${THIS_SCRIPT}: ${PREV_SCRIPT}
     46        @\$(call echo_message, Building)
     47        @./progress_bar.sh \$@ \$\$PPID &
     48        @( time { source envars && /\$(SCRIPT_ROOT)/custom-commands/scripts/${THIS_SCRIPT} >>logs/${THIS_SCRIPT} 2>&1 ; } ) 2>>logs/${THIS_SCRIPT}
     49        @touch \$@
     50        @\$(call housekeeping)
     51EOF
     52) >> ${MKFILE}.tmp2
     53
     54    # Create the build script file
     55( cat <<- xEOFx
     56#!/bin/bash
     57set -e
     58
     59`cat tmp`
     60exit
     61xEOFx
     62) > custom-commands/scripts/$THIS_SCRIPT
     63   
     64    else
     65    # Create an entry for package
    4066( cat << EOF
    4167
     
    6490xEOFx
    6591) > custom-commands/scripts/$THIS_SCRIPT
     92    fi
     93   
    6694    chmod 755 custom-commands/scripts/$THIS_SCRIPT
    6795    rm -f tmp
    68 
    6996    PREV_SCRIPT=$THIS_SCRIPT
    7097    CUSTOM_LIST="${CUSTOM_LIST}${THIS_SCRIPT} "
     
    94121    fi
    95122    source $this_script
     123      # A cmd only script had no PKG defined
     124    [[ "x${PKG}" = "x" ]] && continue
     125   
    96126    echo "${URL} ${BLFS_SERVER}${PKG}/${PKG_FILE} ${MD5}" >> urls.lst.tmp
    97127     # Add any patches..
Note: See TracChangeset for help on using the changeset viewer.