[pkg-nvidia-devel] r920 - in /packages/nvidia-graphics-drivers/trunk/debian: changelog rules
anbe-guest at users.alioth.debian.org
anbe-guest at users.alioth.debian.org
Fri May 21 12:23:52 UTC 2010
Author: anbe-guest
Date: Fri May 21 12:23:48 2010
New Revision: 920
URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=920
Log:
automatically rename control files when building legacy packages
Modified:
packages/nvidia-graphics-drivers/trunk/debian/changelog
packages/nvidia-graphics-drivers/trunk/debian/rules
Modified: packages/nvidia-graphics-drivers/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/changelog?rev=920&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/changelog (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/changelog Fri May 21 12:23:48 2010
@@ -24,6 +24,8 @@
nvidia-libopencl1, nvidia-libopencl1-ia32, nvidia-libopencl1-dev
* module source tarball generation: add legacy support
* debian/nvidia-{glx,kernel}*.in: add #LEGACY# where appropriate
+ * debian/rules: automatically rename control files when building legacy
+ packages
[ Jordi Pujol ]
* simplify installation by using debian/tmp as intermediate directory
Modified: packages/nvidia-graphics-drivers/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/rules?rev=920&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/rules (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/rules Fri May 21 12:23:48 2010
@@ -15,12 +15,19 @@
dirname_x86 = $(NVIDIA_DIRNAME_X86)
dirname_x86_64 = $(NVIDIA_DIRNAME_X86_64)
+ALL_CONTROL := $(wildcard debian/nvidia-glx* debian/nvidia-kernel*)
+LEGACY_CONTROL := $(wildcard debian/nvidia-glx$(legacy)* debian/nvidia-kernel$(legacy)*)
+RENAME_CONTROL = $(filter-out $(LEGACY_CONTROL),$(ALL_CONTROL))
+RENAMED_CONTROL = $(patsubst debian/nvidia-glx%,debian/nvidia-glx$(legacy)%,\
+ $(patsubst debian/nvidia-kernel%,debian/nvidia-kernel$(legacy)%,\
+ $(RENAME_CONTROL)))
TEMPLATES := $(wildcard debian/*.in)
AUTOGEN += $(patsubst %.in,%,$(TEMPLATES))
AUTOGEN += debian/libcuda1-ia32.symbols
AUTOGEN += debian/nvidia-libopencl1-ia32.symbols
AUTOGEN += debian/module/debian/control.template
AUTOGEN += debian/module/debian/changelog
+AUTOGEN += $(patsubst %.in,%,$(RENAMED_CONTROL))
AUTOKEEP = debian/copyright
AUTOCLEAN = $(filter-out $(AUTOKEEP),$(AUTOGEN))
@@ -162,6 +169,15 @@
debian/nvidia-libopencl1-ia32.symbols: debian/nvidia-libopencl1.symbols
sed 's/libopencl1/libopencl1-ia32/g' $< > $@
+# Renaming control files for legacy packaging
+ifneq (,$(legacy))
+nvidia-glx$(legacy)%: nvidia-glx%
+ cp -a $< $@
+
+nvidia-kernel$(legacy)%: nvidia-kernel%
+ cp -a $< $@
+endif
+
.PHONY: get-orig-source
get-orig-source:
More information about the Pkg-nvidia-devel
mailing list