Skip to content

Commit

Permalink
In config-package-dev:
Browse files Browse the repository at this point in the history
  * Allow specifying DEB_TRANSFORM_SCRIPT_$package_$file in case you want
    multiple binary packages transforming the same file differently.
    (Thanks to Evan Broder for this patch).
  * Add a decode script for undoing the file to virtual package name
    transformation. (Thanks to Patrick Hurst for writing decode).
  • Loading branch information
timabbott committed May 9, 2010
1 parent 066a1f9 commit 88056ca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
config-package-dev (4.12) unstable; urgency=low

* Allow specifying DEB_TRANSFORM_SCRIPT_$package_$file in case you want
multiple binary packages transforming the same file differently.
(Thanks to Evan Broder for this patch).
* Add a decode script for undoing the file to virtual package name
transformation. (Thanks to Patrick Hurst for writing decode).

-- Tim Abbott <[email protected]> Sun, 09 May 2010 14:14:50 -0400

config-package-dev (4.11) unstable; urgency=low

* Fix marking transform scripts as executable when
Expand Down
1 change: 1 addition & 0 deletions debian/config-package-dev.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ check-files.mk usr/share/cdbs/1/rules/
config-package.mk usr/share/cdbs/1/rules/
transform-files.mk usr/share/cdbs/1/rules/
encode usr/share/config-package-dev/
decode usr/share/config-package-dev/
divert.sh.in usr/share/config-package-dev/
debconf-hack.sh usr/share/config-package-dev/
8 changes: 5 additions & 3 deletions transform-files.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ DEB_TRANSFORM_FILES_TMPDIR=debian/transform_file_copies

debian_transform_files = $(patsubst %,$(DEB_TRANSFORM_FILES_TMPDIR)%,$(1))
undebian_transform_files = $(patsubst $(DEB_TRANSFORM_FILES_TMPDIR)%,%,$(1))
debian_transform_script = $(if $(DEB_TRANSFORM_SCRIPT_$(call undebian_transform_files,$(1))), \
$(DEB_TRANSFORM_SCRIPT_$(call undebian_transform_files,$(1))), \
debian/transform_$(notdir $(call undebian_transform_files,$(1))))
debian_transform_script = $(if $(DEB_TRANSFORM_SCRIPT_$(cdbs_curpkg)_$(call undebian_transform_files,$(1))), \
$(DEB_TRANSFORM_SCRIPT_$(cdbs_curpkg)_$(call undebian_transform_files,$(1))), \
$(if $(DEB_TRANSFORM_SCRIPT_$(call undebian_transform_files,$(1))), \
$(DEB_TRANSFORM_SCRIPT_$(call undebian_transform_files,$(1))), \
debian/transform_$(notdir $(call undebian_transform_files,$(1)))))

common-build-arch common-build-indep:: $(foreach file,$(DEB_TRANSFORM_FILES),$(call debian_transform_files,$(file)))

Expand Down

0 comments on commit 88056ca

Please sign in to comment.