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

Re: Removing .pl extension in files from a package using debhelper and CDBS.



On Tue, 2008-04-15 at 15:30 +0900, Charles Plessy wrote:
> Dear mentors,
> 
> I am preparing a very simple pacakge (mage2tab) that uses CDBS and
> debhelper:

> anx159《mage2tab》$ cat trunk/debian/rules 
> #!/usr/bin/make -f
> include /usr/share/cdbs/1/rules/debhelper.mk

I would add the simple patchsys to that one - it makes it easier for
people to do NMU's on your package at a later date, even if you don't
use it yourself.

include /usr/share/cdbs/1/rules/simple-patchsys.mk

> I would like to keep this file as simple as possible, but the programs
> in the pacakge are perl scripts whose name finishe in .pl, so I have to
> rename them at some point. My problem is that apparently,
> configure/mage2tab:: or install/mage2tab:: are too early rules if I want
> to rename after using dh_install: they are not in
> $(CURDIR)/debian/mage2tab/usr/bin yet.

Why not rename them before dh_install ? Are you running these scripts
during the build?

> Is there a simple and elegant way to do file renaming with CDBS ?

build/mage2tab::
	install -m 0755 path/foo.pl debian/mage2tab/usr/bin/foo

e.g. an old rule from one of my packages:
http://buildd.emdebian.org/svn/changeset/3134/current/host/trunk/emdebian-tools/trunk/debian/rules

build/emdebian-tools::
	./genmanpages
	install -d debian/emdebian-tools/usr/share/bug/emdebian-tools/
	install -m 0755 debian/buginfo.sh debian/emdebian-tools/usr/share/bug/emdebian-tools/script

(As I'm upstream, I decided to move the file in the source and drop this
rule for the current release - genmanpages is just a shell script to do
pod2man.)


-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: