summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-22 11:08:17 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-22 11:08:17 -0300
commit443a49ca134a2691307741a3f7e4744f52d1eb49 (patch)
tree973fc0ce3f309266c55988ae286ada1c2714156e
parent6ed34e3a513dd73f39d804e9416524bf5eb54be6 (diff)
downloadmediapointer-dvb-s2-443a49ca134a2691307741a3f7e4744f52d1eb49.tar.gz
mediapointer-dvb-s2-443a49ca134a2691307741a3f7e4744f52d1eb49.tar.bz2
The new POSIX backslash behavior on GNU make 3.81 breaks make release
From: Mauro Carvalho Chehab <mchehab@infradead.org> On make 3.81, backslash isn't removed anymore when inside of a single quotted string. This makes make release to fail, since perl won't understand the backslash. This patch just make all script into one line. Bad to understand, but, at least, it will work fine with both GNU make 3.80 and make 3.81. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--v4l/Makefile12
1 files changed, 1 insertions, 11 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index a034be061..0e90e13d8 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -159,22 +159,12 @@ ifneq ($(VER),)
else
ifneq ($(DIR),)
@echo "Seeking for a version at $(DIR)/Makefile."
- @perl -e 'open IN,"$(DIR)/Makefile"; \
- while (<IN>) { \
- if (/^VERSION\s*=\s*([0-9]+)/){ $$version=$$1; }\
- elsif (/^PATCHLEVEL\s*=\s*([0-9]+)/){ $$level=$$1; }\
- elsif (/^SUBLEVEL\s*=\s*([0-9]+)/){ $$sublevel=$$1; }\
- elsif (/^EXTRAVERSION\s*=\s*([^\s]+)\n/){ $$extra=$$1; }\
- }; \
- printf ("VERSION=%s\nPATCHLEVEL:=%s\nSUBLEVEL:=%s\nKERNELRELEASE:=%s.%s.%s%s\n", \
- $$version,$$level,$$sublevel,$$version,$$level,$$sublevel,$$extra); \
- printf ("SRCDIR:=$(DIR)\n");' > $(obj)/.version
+ @perl -e 'open IN,"$(DIR)/Makefile"; while (<IN>) { if (/^VERSION\s*=\s*([0-9]+)/){ $$version=$$1; } elsif (/^PATCHLEVEL\s*=\s*([0-9]+)/){ $$level=$$1; } elsif (/^SUBLEVEL\s*=\s*([0-9]+)/){ $$sublevel=$$1; } elsif (/^EXTRAVERSION\s*=\s*([^\s]+)\n/){ $$extra=$$1; } }; printf ("VERSION=%s\nPATCHLEVEL:=%s\nSUBLEVEL:=%s\nKERNELRELEASE:=%s.%s.%s%s\n", $$version,$$level,$$sublevel,$$version,$$level,$$sublevel,$$extra); printf ("SRCDIR:=$(DIR)\n");' > $(obj)/.version
@cat .version|grep KERNELRELEASE:|sed s,'KERNELRELEASE:=','Forcing compiling to version ',
@if [ ! -f $(DIR)/scripts/kallsyms ]; then \
echo "*** Warning: You should configure and build kernel before compiling V4L"; \
fi
-
else
@echo "No version specified. Using `uname -r`."
@uname -r|perl -ne 'if (/^([0-9]*)\.([0-9])*\.([0-9]*)(.*)$$/) { printf ("VERSION=%s\nPATCHLEVEL:=%s\nSUBLEVEL:=%s\nKERNELRELEASE:=%s.%s.%s%s\n",$$1,$$2,$$3,$$1,$$2,$$3,$$4); };' > $(obj)/.version