diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:45:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:45:20 +0000 |
commit | 9a08cbfcc1ef900a04580f35afe2a4592d7d6030 (patch) | |
tree | 004cc7027bca2f2c0bcb5806527c8e0c48df2d6e /t-func/local.at | |
parent | Initial commit. (diff) | |
download | dpkg-upstream/1.19.8.tar.xz dpkg-upstream/1.19.8.zip |
Adding upstream version 1.19.8.upstream/1.19.8upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | t-func/local.at | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/t-func/local.at b/t-func/local.at new file mode 100644 index 0000000..3a221c1 --- /dev/null +++ b/t-func/local.at @@ -0,0 +1,32 @@ +# Dpkg helper macros + +m4_pattern_forbid([^DPKG_]) + +# DPKG_GEN_CONTROL([$pkgname]) +m4_define([DPKG_GEN_CONTROL], [ + mkdir -p '$1/DEBIAN' + + cat >'$1/DEBIAN/control' <<CTRL_TEMPL +Package: $1 +Version: 0.0-1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package +CTRL_TEMPL +]) + +# DPKG_MOD_CONTROL([$pkgname], [$sedexpr]) +m4_define([DPKG_MOD_CONTROL], [ + sed -i -e '$2' '$1/DEBIAN/control' +]) + +# DPKG_GEN_FILE([$pkgname], [$file], [$contents]) +m4_define([DPKG_GEN_FILE], [ + mkdir -p '$1/DEBIAN' + + cat >'$1/DEBIAN/$2' <<CTRL_TEMPL +$3 +CTRL_TEMPL +]) |