Changeset 6d0dbc3


Ignore:
Timestamp:
08/12/2006 12:34:01 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
dc67791
Parents:
28ff443
Message:

Moved Makefile creation to their own script.
The user MUST to edit/review the build scripts before generating the Makefile.
Fixed SRC_ARCHIVE and FTP_SERVER settings.

Location:
BLFS
Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • BLFS/blfs-parser.sh

    r28ff443 r6d0dbc3  
    3434source libs/func_parser
    3535[[ $? > 0 ]] && echo -e "\n\tERROR: func_parser did not load..\n" && exit
    36 
    37 #---------------------
    38 # Makefile module
    39 source libs/func_makefile
    40 [[ $? > 0 ]] && echo -e "\n\tERROR: func_makefile did not load..\n" && exit
    4136
    4237
     
    107102
    108103
    109 
    110 
    111 
    112104#------- MAIN --------
    113105if [[ ! -f packages ]] ; then
     
    123115generate_target_book
    124116create_build_scripts
    125 generate_Makefile
  • BLFS/gen-makefile.sh

    • Property mode changed from 100644 to 100755
    r28ff443 r6d0dbc3  
    1 #####
    2 #
    3 #
     1#!/bin/bash
    42#
    53# $Id$
    6 #####
     4#
     5set -e
     6
     7
    78
    89# TEMPORARY VARIABLES.. development use only
    9 declare MKFILE=devMakefile
     10declare MKFILE=Makefile
    1011declare PREV_PACKAGE=""
    1112declare BUILD_SCRIPTS=scripts
    1213declare TRACKING_DIR=/var/lib/jhalfs/BLFS
     14
     15HEADER="# This file is automatically generated by jhalfs
     16# YOU MAY NEED TO EDIT THIS FILE MANUALLY
     17#
     18# Generated on `date \"+%F %X %Z\"`"
    1319
    1420
     
    3743(
    3844cat << EOF
    39         @( time { ${BUILD_SCRIPTS}/${file} >>logs/${this_script} 2>&1 ; } ) 2>>logs/${this_script}
     45        @( time { source ../makefile.conf && ${BUILD_SCRIPTS}/${file} >>logs/${this_script} 2>&1 ; } ) 2>>logs/${this_script}
    4046EOF
    4147) >> $MKFILE.tmp
     
    95101  >$MKFILE.tmp
    96102
    97  
     103
    98104  for package_script in scripts/* ; do
    99105    this_script=`basename $package_script`
     
    112118$HEADER
    113119
    114 PACKAGE= "`basename $PKGXML .xml`"
     120PACKAGE= "`basename $PWD`"
    115121TRACKING_DIR= $TRACKING_DIR
    116122
     
    148154
    149155}
     156
     157generate_Makefile
     158
     159cp ../progress_bar.sh .
     160
     161mkdir -p logs
  • BLFS/libs/constants.inc

    r28ff443 r6d0dbc3  
    3434declare -r R_arrow=$'\e[1;33m>\e[0m'
    3535declare -r L_arrow=$'\e[1;33m<\e[0m'
    36 
    37 HEADER="# This file is automatically generated by jhalfs
    38 # DO NOT EDIT THIS FILE MANUALLY
    39 #
    40 # Generated on `date \"+%F %X %Z\"`"
  • BLFS/libs/scripts.xsl

    r28ff443 r6d0dbc3  
    305305        <xsl:text>    cp $SRC_ARCHIVE/$PACKAGE $PACKAGE&#xA;  else&#xA;</xsl:text>
    306306        <!-- The FTP_SERVER mirror -->
    307         <xsl:text>    wget $FTP_SERVER/BLFS/conglomeration/$PKG_DIR/$PACKAGE</xsl:text>
     307        <xsl:text>    wget ${FTP_SERVER}conglomeration/$PKG_DIR/$PACKAGE</xsl:text>
    308308        <!-- Upstream HTTP URL -->
    309309        <xsl:if test="string-length(ulink/@url) &gt; '10' and
Note: See TracChangeset for help on using the changeset viewer.