diff options
author | Eric Hameleers <alien@slackware.com> | 2010-06-01 13:06:17 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2010-06-01 13:06:17 +0000 |
commit | 7c2def41bfb6b4c6c7d32ee854ae6fe49afdc569 (patch) | |
tree | 05ccb9ecbee537c93928842220fb1ab4b28adc95 | |
parent | 2c2ddd4915c63ff3ca9de1544de9ce33c3eb8f75 (diff) | |
download | asb-7c2def41bfb6b4c6c7d32ee854ae6fe49afdc569.tar.gz asb-7c2def41bfb6b4c6c7d32ee854ae6fe49afdc569.tar.xz |
Small cleanups
-rwxr-xr-x | potrace/build/potrace.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/potrace/build/potrace.SlackBuild b/potrace/build/potrace.SlackBuild index f12db259..44537e96 100755 --- a/potrace/build/potrace.SlackBuild +++ b/potrace/build/potrace.SlackBuild @@ -84,6 +84,10 @@ trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR set -u P1=${1:-1} +# Save old umask and set to 0022: +_UMASK_=$(umask) +umask 0022 + case "$ARCH" in i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKLDFLAGS=""; LIBDIRSUFFIX="" @@ -138,7 +142,7 @@ echo "Extracting the source archive(s) for $PRGNAM..." tar -xvf ${SOURCE} cd ${PRGNAM}-${VERSION} chown -R root:root . -chmod -R u+w,go+r-w,a-s . +chmod -R u+w,go+r-w,a+X-s . echo Building ... LDFLAGS="$SLKLDFLAGS" \ @@ -191,3 +195,6 @@ md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt +# Restore the original umask: +umask ${_UMASK_} + |