jhalfs-X source archive

M.Canales.es manuel at linuxfromscratch.org
Wed Mar 15 13:01:13 PST 2006


El Miércoles, 15 de Marzo de 2006 21:53, George Boudreau escribió:


>    # If the file exists in the archive, copy to the $BUILDDIR/sources dir
>    # MD5SUM is assumed to be correct from previous download
>    if [ ! -z ${SRC_ARCHIVE} ] &&
>       [   -d ${SRC_ARCHIVE} ] &&
>       [ -f ${SRC_ARCHIVE}/$2 ]; then
>      cp -v ${SRC_ARCHIVE}/$2 .
>      echo "$2: -- ok"
>      return
>    fi

Look good.


>    # If we make it this far we should copy the freshly downloaded file
>    # to the source archive. MD5SUM already validated
>    if [ ! -z ${SRC_ARCHIVE} ] &&
>       [   -d ${SRC_ARCHIVE} ] &&
>       [ $2 = "MD5SUM" ]; then
>        cp -v $2 ${SRC_ARCHIVE}
>      fi
>    fi
> }

If ${SRC_ARCHIVE} is in a partition not writable by the user, that will not 
work.


-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.com
TLDP-ES:                           http://es.tldp.org



More information about the alfs-discuss mailing list