diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-10-06 13:21:28 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-10-06 13:21:28 +0000 |
commit | 359f9fde359245fd4ed8168dd3deb5deae86ff2a (patch) | |
tree | aac4897a0593a675b5bf9dcd4f9294594be311e0 /src/createpkg | |
parent | eb06fa5d24eaf6d4569ee0ff82d3df1e1eda79ef (diff) | |
download | simplepkg-359f9fde359245fd4ed8168dd3deb5deae86ff2a.tar.gz simplepkg-359f9fde359245fd4ed8168dd3deb5deae86ff2a.tar.bz2 |
createpkg: added error handling spec
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@16 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src/createpkg')
-rw-r--r-- | src/createpkg | 8 |
1 files changed, 7 insertions, 1 deletions
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`" |