00 0 SCRIPT is PACKAGE is FTPDIR is #!/bin/sh set -e SRC_ARCHIVE=$SRC_ARCHIVE FTP_SERVER=$FTP_SERVER PACKAGE= PKG_DIR= cd ~/sources/$PKG_DIR rm -rf $UNPACKDIR exit mkdir -p ~/sources/$PKG_DIR cd ~/sources/$PKG_DIR tar -xvf $PACKAGE > unpacked UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` cd $UNPACKDIR cdparanoia OOo qt xorg - if [[ ! -f $PACKAGE ]] ; then if [[ -f $SRC_ARCHIVE/$PKG_DIR/$PACKAGE ]] ; then cp $SRC_ARCHIVE/$PKG_DIR/$PACKAGE $PACKAGE elif [[ -f $SRC_ARCHIVE/$PACKAGE ]] ; then cp $SRC_ARCHIVE/$PACKAGE $PACKAGE else wget $FTP_SERVER/BLFS/conglomeration/$PKG_DIR/$PACKAGE || \ wget || \ wget fi fi echo " $PACKAGE" | md5sum -c - wget sudo # make -k || true **EDITME EDITME**