[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dh_make mod



Hello Ivan,

I figured you (and anyone else packaging KDE programs) may be interested
in this: a dh_make patch to allow custom debianizing templates, an
edited version of the kde debian dir (so dh_make's parameter
substitution does something useful). 

What I did to dh_make... added a command line option (-c, --custom) that
takes an argument, the argument is used as the path to a directory
containing template files (see /usr/share/debhelper/dh_make/* for
examples).

To use the new feature just create a set of template files in a dir and
add "-c /path/to/custom/template/dir" to your usual dh_make command.

Have fun.


later,

	Bruce

4a5,6
> # 20001208bms - added support for custom templates
> #
10c12
< $DH_MAKE_VERSION="0.21";
---
> $DH_MAKE_VERSION="0.21.20001208bms";
22a25
> $custom="";
67a71
>   -c, --custom <dir>        use custom template in <dir>
71c75,76
< By Craig Small <csmall\@debian.org> and Christoph Lameter <clameter\@debian.org>.
---
> By Craig Small <csmall\@debian.org> and Christoph Lameter <clameter\@debian.org>,
> custom template support added by Bruce Sass <bsass\@edmc.net>.
79a85
> 	      custom => \$main::custom,
87c93
<   if (GetOptions(\%options, "email=s", "file=s", "help", "version", "native", "single", "multi", "library") == 0)
---
>   if (GetOptions(\%options, "email=s", "file=s", "custom=s", "help", "version", "native", "single", "multi", "library") == 0)
114d119
< 
297a303,312
> }
> 
> # Custom template
> if ( -d $custom )
> {
>     @filenames = split /[ \n]/, `(cd $custom && ls)`;
>     foreach $filename (@filenames)
>     {
>       process_file("$custom/$filename", $filename);
>     }

Attachment: debiank.tar.gz
Description: debianizing template forKDE


Reply to: