Changeset 6977354 for BLFS/packages.sh


Ignore:
Timestamp:
05/30/2006 12:16:23 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
db6b934
Parents:
e6ef6fcc
Message:

again, a little housekeeping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/packages.sh

    re6ef6fcc r6977354  
    44#
    55set -e
     6
     7BLFS_XML=$1  # Book directory
     8DOC_MODE=$2  # Action to take, only update at the moment
    69
    710#---------------------
     
    1215
    1316if [[ -z "$1" ]] ; then
    14   echo -e "n\tYou must to provide the name of the BLFS book sources directory.\n"
     17  echo -e "\n\tYou must to provide the name of the BLFS book sources directory.\n"
    1518  exit 1
    1619fi
    17 
    18 BLFS_XML=$1
    1920
    2021if [[ ! -d $BLFS_XML ]] ; then
     
    2829fi
    2930
    30 if [[ -n "$2" ]] ; then
    31   case $2 in
     31if [[ -n "$DOC_MODE" ]] ; then
     32  case $DOC_MODE in
    3233    update )
    3334      if [[ -d $BLFS_XML/.svn ]] ; then
     
    4344      ;;
    4445    * )
    45       echo -e "\n\tUnknown option $2 ignored.\n"
     46      echo -e "\n\tUnknown option ${DOC_MODE} ignored.\n"
    4647      ;;
    4748  esac
Note: See TracChangeset for help on using the changeset viewer.