From: rhatto Date: Fri, 6 Oct 2006 13:21:28 +0000 (+0000) Subject: createpkg: added error handling spec X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=359f9fde359245fd4ed8168dd3deb5deae86ff2a;p=simplepkg.git createpkg: added error handling spec git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@16 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/src/createpkg b/src/createpkg index ce0b417..c0581a3 100644 --- a/src/createpkg +++ b/src/createpkg @@ -194,7 +194,13 @@ fi cd $SCRIPT_BASE INTERACT=no ./`basename $BUILD_SCRIPT` -# TODO: check slackbuild exit status code +# TODO: check slackbuild exit status code according to the following: +# +# ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +# ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +# ERROR_TAR=37; ERROR_MKPKG=38 +# +# Thanks to Rudson rudsonalves at yahoo.com.br for this spec. VERSION="`grep -e '^VERSION=' $BUILD_SCRIPT | head -n 1 | sed -e "s/VERSION//g" -e 's/=//g' -e 's/-//g' | cut -d ":" -f 2 | cut -d "}" -f 1`" BUILD="`grep -e '^BUILD=' $BUILD_SCRIPT | head -n 1 | sed -e "s/BUILD//g" -e 's/=//g' | cut -d ":" -f 2 | cut -d "}" -f 1`"