aboutsummaryrefslogtreecommitdiff
path: root/app/crypt
diff options
context:
space:
mode:
authorluis <luis@370017ae-e619-0410-ac65-c121f96126d4>2006-12-04 04:56:35 +0000
committerluis <luis@370017ae-e619-0410-ac65-c121f96126d4>2006-12-04 04:56:35 +0000
commit37d561ca2d24d0d1bf516eb4be54ec214172674c (patch)
tree60649a39b99a4ddab4bc9849d7626804099c1373 /app/crypt
parent58c1cdf0e649a2474ff4cbc21e480638344991f4 (diff)
downloadslackbuilds-37d561ca2d24d0d1bf516eb4be54ec214172674c.tar.gz
slackbuilds-37d561ca2d24d0d1bf516eb4be54ec214172674c.tar.bz2
Adicionando $ERROR_VCS e $ERROR_MKDIR e outras mudancas menores
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@766 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'app/crypt')
-rwxr-xr-xapp/crypt/gnupg2/gnupg2.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/crypt/gnupg2/gnupg2.SlackBuild b/app/crypt/gnupg2/gnupg2.SlackBuild
index d0d0e2fd..b8fe3792 100755
--- a/app/crypt/gnupg2/gnupg2.SlackBuild
+++ b/app/crypt/gnupg2/gnupg2.SlackBuild
@@ -48,14 +48,14 @@ fi
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
-ERROR_PATCH=40
+ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
# Clean up any leftovers of previous builds
-rm -rf $SRC_NAME-$VERSION
-rm -rf $PKG
-mkdir -p $SRC_DIR
-mkdir -p $PKG
-mkdir -p $REPOS
+rm -rf $SRC_NAME-$VERSION 2> /dev/null
+rm -rf $PKG 2> /dev/null
+mkdir -p $SRC_DIR || exit $ERROR_MKDIR
+mkdir -p $PKG || exit $ERROR_MKDIR
+mkdir -p $REPOS || exit $ERROR_MKDIR
# Import (minimized) signing key from
# http://www.gnupg.org/(en)/signature_key.html
@@ -113,13 +113,13 @@ chmod 4755 $PKG/$PREFIX/bin/{gpg2,gpgv2,gpg-agent,gpgsm}
mv -f $PKG/$PREFIX/share/info $PKG/$PREFIX/
mv -f $PKG/$PREFIX/share/man $PKG/$PREFIX/
mv -f $PKG/$PREFIX/share/gnupg $PKG/$PREFIX/share/gnupg2
-rm -rf $PKG/$PREFIX/info/dir
+rm -f $PKG/$PREFIX/info/dir
gzip -9 $PKG/$PREFIX/info/*
gzip -9 $PKG/$PREFIX/man/*/*
# Install documentation
DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* THANKS TODO VERSION"
-mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
+mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
( cd $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
ln -sf /$PREFIX/share/$PKG_NAME/FAQ .
@@ -127,7 +127,7 @@ cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
)
# Add slack-desc file
-mkdir -p $PKG/install
+mkdir -p $PKG/install || exit $ERROR_MKDIR
cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
@@ -156,5 +156,5 @@ makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPK
# Delete build directory, if requested
if [ "$CLEANUP" == "yes" ]; then
- rm -rf $PKG
+ rm -rf $PKG $CWD/$PACKAGE-$VERSION
fi