summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-26 09:17:55 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-26 09:17:55 (EST)
commit4bc3153d49471238a40daddc68efef4af0e2a1a2 (patch)
tree8af3baf6f9bdf6b5aed3e957093c338f5684a405 /lib/buildsystem
parent59827b32ca507d7f2dd004b09bf37728db969de3 (diff)
lib/*.sh, lib/*/*.sh: Rewrite include guards.
This is one step toward adding `set -u` to opkhelper utilities.
Diffstat (limited to 'lib/buildsystem')
-rw-r--r--lib/buildsystem/autoconf.sh4
-rw-r--r--lib/buildsystem/kbuild.sh4
-rw-r--r--lib/buildsystem/make.sh4
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/buildsystem/autoconf.sh b/lib/buildsystem/autoconf.sh
index 35ae452..232ca0d 100644
--- a/lib/buildsystem/autoconf.sh
+++ b/lib/buildsystem/autoconf.sh
@@ -17,8 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-[ -n "${_OH_BUILDSYSTEM_AUTOCONF_SM}" ] && return 0
-_OH_BUILDSYSTEM_AUTOCONF_SM='true'
+[ "x${_OH_BUILDSYSTEM_AUTOCONF_SM+set}" = 'xset' ] && return 0
+_OH_BUILDSYSTEM_AUTOCONF_SM=1
_oh_autoconf_can_configure()
{
diff --git a/lib/buildsystem/kbuild.sh b/lib/buildsystem/kbuild.sh
index 8db2f59..3d6fd1b 100644
--- a/lib/buildsystem/kbuild.sh
+++ b/lib/buildsystem/kbuild.sh
@@ -17,8 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-[ -n "${_OH_BUILDSYSTEM_KBUILD_SM}" ] && return 0
-_OH_BUILDSYSTEM_KBUILD_SM='true'
+[ "x${_OH_BUILDSYSTEM_KBUILD_SM+set}" = 'xset' ] && return 0
+_OH_BUILDSYSTEM_KBUILD_SM=1
_oh_kbuild_can_configure()
{
diff --git a/lib/buildsystem/make.sh b/lib/buildsystem/make.sh
index ef34e16..7ed9dc0 100644
--- a/lib/buildsystem/make.sh
+++ b/lib/buildsystem/make.sh
@@ -17,8 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-[ -n "${_OH_BUILDSYSTEM_MAKE_SM}" ] && return 0
-_OH_BUILDSYSTEM_MAKE_SM='true'
+[ "x${_OH_BUILDSYSTEM_MAKE_SM+set}" = 'xset' ] && return 0
+_OH_BUILDSYSTEM_MAKE_SM=1
_oh_make_can_configure()
{