summaryrefslogtreecommitdiff
path: root/scripts/makepkg
diff options
context:
space:
mode:
authorJürgen Hötzel <juergen@archlinux.org>2007-02-13 20:47:34 +0000
committerJürgen Hötzel <juergen@archlinux.org>2007-02-13 20:47:34 +0000
commitac965ed4010e55dfffe945a88ba01091acfb6351 (patch)
treee8d5fe5bc23ec57c19949ce9e8909848cf8286b7 /scripts/makepkg
parent473fee2f11856f868ce02bba12998b4f661f5246 (diff)
* unset LC_ALL, LANG after sourcing /etc/profile.d/*
Diffstat (limited to 'scripts/makepkg')
-rwxr-xr-xscripts/makepkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index 12596b0f..36fd161f 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -503,10 +503,6 @@ unset pkgname pkgver pkgrel pkgdesc url license groups provides md5sums force
unset replaces depends conflicts backup source install build makedepends
unset options noextract
-# some applications (eg, blackbox) will not build with some languages
-unset LC_ALL LANG
-umask 0022
-
if [ ! -f $BUILDSCRIPT ]; then
error "$BUILDSCRIPT does not exist."
exit 1
@@ -830,6 +826,10 @@ else
# build
msg "Starting build()..."
+ # some applications (eg, blackbox) will not build with some languages
+ unset LC_ALL LANG
+ umask 0022
+
#check for "exit on syntax error" shell option
echo $SHELLOPTS | grep errexit 2>&1 >/dev/null
set_e=$?