* [PATCH] build-sys: remove non-POSIX variable names
@ 2008-08-12 22:01 Karel Zak
2008-08-13 10:03 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Karel Zak @ 2008-08-12 22:01 UTC (permalink / raw)
To: linux-hotplug
Makefile.am:24: shell echo $$(( $(VERSION: non-POSIX variable name
Makefile.am:24: (probably a GNU make extension)
Makefile.am:26: shell echo $$(($(VERSION: non-POSIX variable name
Makefile.am:26: (probably a GNU make extension)
Makefile.am:29: shell echo $$(($(VERSION: non-POSIX variable name
Makefile.am:29: (probably a GNU make extension)
Signed-off-by: Karel Zak <kzak@redhat.com>
---
Makefile.am | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index ae21bca..a4260ea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,6 +12,8 @@ EXTRA_DIST = \
docs \
autogen.sh
+PREVIOUS_VERSION = `expr $(VERSION) - 1`
+
distclean-local:
rm -f *~
rm -rf autom4te.cache
@@ -21,12 +23,12 @@ distclean-local:
rm -f udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2
changelog:
- @ head -1 ChangeLog | grep -q "to v$(shell echo $$(($(VERSION) - 1)))"
+ @ head -1 ChangeLog | grep -q "to $(PREVIOUS_VERSION)"
@ mv ChangeLog ChangeLog.tmp
- @ echo "Summary of changes from v$(shell echo $$(($(VERSION) - 1))) to v$(VERSION)" >> ChangeLog
+ @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
@ echo "======================" >> ChangeLog
@ echo >> ChangeLog
- @ git log --pretty=short $(shell echo $$(($(VERSION) - 1)))..HEAD | git shortlog >> ChangeLog
+ @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog
@ echo >> ChangeLog
@ cat ChangeLog
@ cat ChangeLog.tmp >> ChangeLog
--
1.5.5.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] build-sys: remove non-POSIX variable names
2008-08-12 22:01 [PATCH] build-sys: remove non-POSIX variable names Karel Zak
@ 2008-08-13 10:03 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2008-08-13 10:03 UTC (permalink / raw)
To: linux-hotplug
On Wed, 2008-08-13 at 00:01 +0200, Karel Zak wrote:
> Makefile.am:24: shell echo $$(( $(VERSION: non-POSIX variable name
> Makefile.am:24: (probably a GNU make extension)
> Makefile.am:26: shell echo $$(($(VERSION: non-POSIX variable name
> Makefile.am:26: (probably a GNU make extension)
> Makefile.am:29: shell echo $$(($(VERSION: non-POSIX variable name
> Makefile.am:29: (probably a GNU make extension)
Ah, I "fixed" it by removing -Wall from AM_INIT_AUTOMAKE. :)
Applied.
Thanks,
Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-13 10:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 22:01 [PATCH] build-sys: remove non-POSIX variable names Karel Zak
2008-08-13 10:03 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox