diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-12-06 22:29:33 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-07 17:02:11 +0100 |
commit | 0e4946d5593e5968c1d6bca50402eaf7a8620526 (patch) | |
tree | 1d4b0f6bfd63e33df10a98d3a98bd8d2f7700ad2 /scripts/makepkg.sh.in | |
parent | a3a75e0a41680283572895165da3fe2505314dec (diff) | |
download | pacman-0e4946d5593e5968c1d6bca50402eaf7a8620526.tar.gz pacman-0e4946d5593e5968c1d6bca50402eaf7a8620526.tar.xz |
scripts/*: Declare several constant variables read-only
Be more semantically accurate and avoid accidental overwriting of some
configuration variables that are considered to be constant.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 0fa05dcb..a0a94fe1 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -37,10 +37,10 @@ export TEXTDOMAINDIR='@localedir@' # file -i does not work on Mac OSX unless legacy mode is set export COMMAND_MODE='legacy' -myver='@PACKAGE_VERSION@' -confdir='@sysconfdir@' -BUILDSCRIPT='@BUILDSCRIPT@' -startdir="$PWD" +declare -r myver='@PACKAGE_VERSION@' +declare -r confdir='@sysconfdir@' +declare -r BUILDSCRIPT='@BUILDSCRIPT@' +declare -r startdir="$PWD" packaging_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'purge' 'upx') other_options=('ccache' 'distcc' 'buildflags' 'makeflags') |