public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/openrc:master commit in: runlevels/, net/, conf.d/, sh/, etc/, doc/
@ 2011-10-19 17:32 William Hubbs
  0 siblings, 0 replies; only message in thread
From: William Hubbs @ 2011-10-19 17:32 UTC (permalink / raw
  To: gentoo-commits

commit:     9c77502f964ef368892598b4fb30c4909fe3d360
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 19 17:22:23 2011 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Oct 19 17:22:23 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=9c77502f

Make variable references in Makefiles consistent

Some variable references were written as $(foo), but the majority were
written as ${foo}. This commit changes all of the variable references
to using braces.

---
 conf.d/Makefile    |    6 +++---
 doc/Makefile       |    6 +++---
 etc/Makefile       |    8 ++++----
 net/Makefile       |    6 +++---
 runlevels/Makefile |    8 ++++----
 sh/Makefile        |    6 +++---
 6 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/conf.d/Makefile b/conf.d/Makefile
index 817f60e..5af2592 100644
--- a/conf.d/Makefile
+++ b/conf.d/Makefile
@@ -7,12 +7,12 @@ CLEANFILES+=	network staticroute
 MK=	../mk
 include ${MK}/os.mk
 
-ifeq ($(OS),FreeBSD)
+ifeq (${OS},FreeBSD)
 CONF+=	ipfw moused powerd rarpd savecore syscons
-else ifeq ($(OS),Linux)
+else ifeq (${OS},Linux)
 CONF+=	consolefont dmesg hwclock keymaps killprocs modules
 SOS=	Linux
-else ifeq ($(OS),NetBSD)
+else ifeq (${OS},NetBSD)
 CONF+=	moused rarpd savecore
 endif
 

diff --git a/doc/Makefile b/doc/Makefile
index 8f6930a..4fbc99c 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -4,19 +4,19 @@ INC=	net.example
 MK=	../mk
 include ${MK}/os.mk
 
-ifeq ($(OS),FreeBSD)
+ifeq (${OS},FreeBSD)
 SRCS+=		net.example.in
 
 .SUFFIXES:	.BSD.in
 .BSD.in:
 	${CP} $< $@
-else ifeq ($(OS),Linux)
+else ifeq (${OS},Linux)
 SRCS+=		net.example.in
 
 .SUFFIXES:	.Linux.in
 .Linux.in:
 	${CP} $< $@
-else ifeq ($(OS),NetBSD)
+else ifeq (${OS},NetBSD)
 SRCS+=		net.example.in
 
 .SUFFIXES:	.BSD.in

diff --git a/etc/Makefile b/etc/Makefile
index 4f913ad..a7976b6 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -6,15 +6,15 @@ CLEANFILES+=	rc.conf
 MK=	../mk
 include ${MK}/os.mk
 
-ifeq ($(OS),FreeBSD)
+ifeq (${OS},FreeBSD)
 SED_EXTRA=	-e 's:@TERM@:cons25:g'
 SRCS+=		rc.conf.in rc.in rc.shutdown.in
 CONF+=		devd.conf
 BIN+=		rc rc.shutdown rc.devd
-else ifeq ($(OS),Linux)
+else ifeq (${OS},Linux)
 SED_EXTRA=	-e 's:@TERM@:wsvt25:g'
 SRCS+=		rc.conf.in rc.in rc.shutdown.in
-else ifeq ($(OS),NetBSD)
+else ifeq (${OS},NetBSD)
 SED_EXTRA=	-e 's:@TERM@:wsvt25:g'
 SRCS+=		rc.conf.in rc.in rc.shutdown.in
 BIN+=		rc rc.shutdown
@@ -25,7 +25,7 @@ include ${MK}/scripts.mk
 # We can't use "ifndef" here because that treats set-but-empty
 # as not-set which is not what we want
 MKRCSYS ?= automagicplease
-ifeq ($(MKRCSYS),automagicplease)
+ifeq (${MKRCSYS},automagicplease)
 # If the user isn't picking a default, then have the
 # config go with runtime automagic detection #357247
 rc.conf: SED_EXTRA += -e '/^rc_sys=""/s:^:\#:'

diff --git a/net/Makefile b/net/Makefile
index af5f6e2..f783e40 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -6,14 +6,14 @@ INC=	dhclient.sh dhcpcd.sh ifconfig.sh macchanger.sh macnet.sh \
 MK=	../mk
 include ${MK}/os.mk
 
-ifeq ($(OS),FreeBSD)
+ifeq (${OS},FreeBSD)
 SRCS+=		iwconfig.sh.in
 INC+=		iwconfig.sh
 
 .SUFFIXES:	.sh.BSD.in
 .sh.BSD.in.sh:
 	${CP} $< $@
-else ifeq ($(OS),Linux)
+else ifeq (${OS},Linux)
 SRCS+=		iwconfig.sh.in
 INC+=		adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \
 		ccwgroup.sh clip.sh ethtool.sh iproute2.sh ifplugd.sh ip6to4.sh \
@@ -23,7 +23,7 @@ INC+=		adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \
 .SUFFIXES:	.sh.Linux.in
 .sh.Linux.in.sh:
 	${CP} $< $@
-else ifeq ($(OS),NetBSD)
+else ifeq (${OS},NetBSD)
 INC+=		ifwatchd.sh
 
 .SUFFIXES:	.sh.BSD.in

diff --git a/runlevels/Makefile b/runlevels/Makefile
index 782638b..1f9f9aa 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -16,19 +16,19 @@ include ${MK}/sys.mk
 include ${MK}/os.mk
 include ${MK}/gitignore.mk
 
-ifeq ($(OS),BSD)
+ifeq (${OS},BSD)
 BOOT+=		hostid newsyslog savecore syslogd swap-blk
-else ifeq ($(OS),FreeBSD)
+else ifeq (${OS},FreeBSD)
 # Generic BSD stuff
 BOOT+=		hostid net.lo0 newsyslog savecore syslogd
 
 # FreeBSD specific stuff
 BOOT+=		adjkerntz dumpon syscons
-else ifeq ($(OS),Linux)
+else ifeq (${OS},Linux)
 SYSINIT+=	devfs dmesg
 BOOT+=		hwclock keymaps modules mtab procfs termencoding
 SHUTDOWN+=	killprocs mount-ro
-else ifeq ($(OS),NetBSD)
+else ifeq (${OS},NetBSD)
 # Generic BSD stuff
 BOOT+=		hostid net.lo0 newsyslog savecore syslogd
 

diff --git a/sh/Makefile b/sh/Makefile
index 72df96a..c29462e 100644
--- a/sh/Makefile
+++ b/sh/Makefile
@@ -9,14 +9,14 @@ INSTALLAFTER=	_installafter
 MK=	../mk
 include ${MK}/os.mk
 
-ifeq ($(OS),FreeBSD)
+ifeq (${OS},FreeBSD)
 SRCS+=		init.sh.in
 
 .SUFFIXES:	.sh.BSD.in
 .sh.BSD.in.sh:
 	${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
 
-else ifeq ($(OS),Linux)
+else ifeq (${OS},Linux)
 SRCS+=		init.sh.in init-early.sh.in udhcpc-hook.sh.in
 BIN+=		init-early.sh udhcpc-hook.sh
 
@@ -24,7 +24,7 @@ BIN+=		init-early.sh udhcpc-hook.sh
 .sh.Linux.in.sh:
 	${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
 
-else ifeq ($(OS),NetBSD)
+else ifeq (${OS},NetBSD)
 SRCS+=		init.sh.in
 
 SRCS+=		ifwatchd-carrier.sh.in ifwatchd-nocarrier.sh.in



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-19 17:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-19 17:32 [gentoo-commits] proj/openrc:master commit in: runlevels/, net/, conf.d/, sh/, etc/, doc/ William Hubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox