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

Re: 3-line debian/rules



On Wed, 29 Apr 2009 23:45:35 +0300, Damyan Ivanov wrote:

> > For me the longer version is more readable and easier to extend
> > (adding quilt fragements or some custom commands) because the
> > skeleton is already spelled out; but that may of course also be
> > because I've seen it a few hundred times in the last ~10 months.
> 
> here's the default rules that can build most of the packages:
> ___________________
> #!/usr/bin/make -f
> %:
>         dh $@
> ~~~~~~~~~~~~~~~~~~~
> 
> Hardly can get easier than that :) 

Sure, I more meant "easier to add additional commands" as the main
targets are already there in the longer version.

> Adding quilt:
> __________________________
> #!/usr/bin/make -f
> include /usr/share/quilt/quilt.make
> %:
>         dh $@
> 
> override_dh_auto_configure: $(QUILT_STAMPFN)
>         dh_auto_configure
> 
> override_dh_auto_clean: unpatch
>         dh_auto_clean
> ~~~~~~~~~~~~~~~~~~~~~~~~~~

/me keeps this mail for future use :)
 
> I think it is not that hard. Different -- yes, but nothing more.

Sure.
 
> The text one needs to add is more, compared to the case with 
> semi-short rules. 

Someone[tm] should write scripts/quiltify.{pl,sh} :)

> > I'd just prefer to have one "default" version because it makes
> > reviewing and upgrading packages easier.
> OK, I surely don't want to /force/ anybody to use the even shorter 
> debian/rules. Placing additional burden to the most (or only) active 
> sponsor in the group would be counter-productive :)
> I'd encourage trying it. Maybe it'll work :)

I'm confident I('d) get used to it :)

Still, I'd like to have one default method and dh-make-perl to use
this one, whether it's the "old" or the "new" one. 

Cheers,
gregor 
-- 
 .''`.   Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-    NP: Frank Zappa: JIM/ROY

Attachment: signature.asc
Description: Digital signature


Reply to: