#!/bin/bash # # $Id$ # set -e declare TARGET declare DEP_LEVEL declare PKGXML declare BLFS_XML declare VERBOSITY=1 # Grab and name the command line options optTARGET=$1 optDEPENDENCY=$2 #--------------------- # Constants source libs/constants.inc [[ $? > 0 ]] && echo -e "\n\tERROR: constants.inc did not load..\n" && exit #--------------------- # Configuration file for alternatives source alternatives.conf [[ $? > 0 ]] && echo -e "\n\tERROR: alternatives.conf did not load..\n" && exit #--------------------- # Dependencies module source libs/func_dependencies [[ $? > 0 ]] && echo -e "\n\tERROR: func_dependencies did not load..\n" && exit #--------------------- # parser module source libs/func_parser [[ $? > 0 ]] && echo -e "\n\tERROR: func_parser did not load..\n" && exit #--------------------- # Makefile module source libs/func_makefile [[ $? > 0 ]] && echo -e "\n\tERROR: func_makefile did not load..\n" && exit #-------------------------# validate_target() { # ID of target package (as listed in packages file) #-------------------------# : < /dev/null ; then echo -e "\n\t$1 is not a valid package ID." echo -e "\tSee packages file for a list of available targets.\n" exit 1 fi TARGET=$1 echo -e "\n\tUsing $TARGET as the target package." } #-------------------------# validate_dependency() { # Dependencies level 1(required)/2(1 + recommended)/3(2+ optional) #-------------------------# : <