summaryrefslogtreecommitdiffstats
path: root/tools/config-gen
diff options
context:
space:
mode:
authorSami Kerola2012-03-18 21:38:39 +0100
committerKarel Zak2012-03-30 16:48:13 +0200
commit83134551610941b11081128fcce12ba95ed47964 (patch)
treef8e54450e2fe336bdb1fdd1484796f29b6a556b6 /tools/config-gen
parenttools: checkconfig.sh: make scripts bourne sh compliant [checkbashisms] (diff)
downloadkernel-qcow2-util-linux-83134551610941b11081128fcce12ba95ed47964.tar.gz
kernel-qcow2-util-linux-83134551610941b11081128fcce12ba95ed47964.tar.xz
kernel-qcow2-util-linux-83134551610941b11081128fcce12ba95ed47964.zip
tools: config-gen: make scripts bourne sh compliant [checkbashisms]
$ checkbashisms config-gen script config-gen does not appear to be a /bin/sh script possible bashism in config-gen line 27 (export foo=bar should be foo=bar; export foo): export CFLAGS="$CFLAGS" $ checkbashisms config-gen-functions.sh possible bashism in config-gen-functions.sh line 14 ('function' is useless): Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tools/config-gen')
-rwxr-xr-xtools/config-gen5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/config-gen b/tools/config-gen
index 441e5a465..720c5a7dd 100755
--- a/tools/config-gen
+++ b/tools/config-gen
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright (C) 2011 Karel Zak <kzak@redhat.com>
#
@@ -24,7 +24,8 @@ for x in $opts; do
done
if [ -n "$CFLAGS" ]; then
echo "CFLAGS: $CFLAGS"
- export CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS"
+ export CFLAGS
fi
echo