[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.



Am Dienstag, den 15.04.2008, 15:30 +0900 schrieb Charles Plessy:

> 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 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.
> 
> Is there a simple and elegant way to do file renaming with CDBS ?

Use dh_install to install the .pl file and then:

binary-fixup/mage2tab::
	mv $(CURDIR)/debian/$(PACKAGE)/... ...

Regards, Daniel


Reply to: