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

Creating /usr/bin/ entries to scripts the right way



Dear Debian Mentors,

While working on a Python command-line application (harvestman, which
is already in Debian), I have the necessity to create a /usr/bin
entry. Now, creating a symbolic link to the actual executable in
/usr/lib/python2.4/... is what the provided installer does. But I want
to replace it with this:

#!/bin/sh
exec /usr/bin/python /usr/lib/`pyversions \
-d`/site-packages/HarvestMan/harvestman.py "$@"

Now, this is find and great. But _how_ do I put this in my package? Do
I put it as "harvestman.exec" in my package's ./debian/ directory and
then copy it and set the permissions for it using install? Or is there
a more elegant way of getting over this?

Thanks.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

Attachment: signature.asc
Description: Digital signature


Reply to: