--- trunk/mage/usr/lib/mage/smage2.sh 2011/12/28 10:31:45 1572 +++ trunk/mage/usr/lib/mage/smage2.sh 2011/12/28 10:41:44 1573 @@ -321,7 +321,7 @@ unset SRC_URI } -# dummy function, used if that not exist in smage file +# dummy function, used if that does not exist in smage file src_prepare() { echo "no src_prepare defined" @@ -329,7 +329,7 @@ return 0 } -# dummy function, used if that not exist in smage file +# dummy function, used if that does not exist in smage file src_compile() { echo "no src_compile defined" @@ -337,7 +337,7 @@ return 0 } -# dummy function, used if that not exist in smage file +# dummy function, used if that does not exist in smage file src_install() { echo "no src_install defined" @@ -1467,20 +1467,20 @@ # small sleep to show our settings sleep 1 -# cleans up build if a previously one exists +# clean up builddir if a previously one exist if [ -d ${BUILDDIR} ] then rm -rf ${BUILDDIR}/* || die "couldn't cleanup \$BUILDDIR." fi install -d ${BUILDDIR} || die "couldn't create \$BUILDDIR." -# cleans up srcdir if a previously unpacked one exists +# clean up srcdir if a previously unpacked one exist if [ -d ${SRCDIR} ] then rm -rf ${SRCDIR} fi -# cleans up bindir if a previous build exists or creates a new one +# clean up bindir if a previous build exist or create a new one if [ -d ${BINDIR} ] then rm -rf ${BINDIR} @@ -1499,7 +1499,7 @@ mage rmstamp fi -# setup build loggins +# setup build logging [[ ! -d /var/log/smage ]] && install -d /var/log/smage echo -e "### Build started on $(date) ###\n" > /var/log/smage/${PKGNAME}.log @@ -1599,7 +1599,7 @@ then for target in ${MAGE_TARGETS} do - # check if an special target_pkgbuild exists + # check if a special target_pkgbuild exists if typeset -f ${target}_pkgbuild > /dev/null then # run it