How is the Debian package made? Can't find a reference to it on the Makefile

Hello devs (and specially @ncw),

I'm having a look at this, and figured out that the /usr/share/doc/README.html on the deb package almost certainly comes from the ./MANUAL.html file on the rclone source tree (the fact that they are byte-by-byte identical is a big clue :wink: ), and from the ./Makefile I can determine the latter comes from ./

But I can't find how the deb package gets generated (including the MANUAL.html file being renamed as README.html to be placed in it). Is the deb file generation code ´outside' the rclone source tree, or am I missing something?

-- Durval.

The deb package is generated using nfpm and the code for that is present at

1 Like

Thanks @Darthshadow, the chance of finding that by myself would have been almost infinitesimal... :slight_smile:

EDIT: FWIW, what I was actually trying to find (ie, how ./MANUAL.html on the source tree turns into /usr/share/doc/rclone/README.html in the DEB file) is at

You found it!

I normally regenerate the MANUAL.html on each release with make docs