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

Re: debian-cd scripts

> Ok, I'm once again over my head in Makefile language ...
> I'm making a set of Debian CDs for local use only (no selling or
> distribution involved).  Therefore, I'd like to have all of non-free on
> a CD.  This ought to be possible, since the debian-cd package has a
> non-free script.  It also wants you to provide a list of packages from
> non-free that are "ok".
> If I add all the packages to the list, I get an error:
> cp: copying multiple files, but last argument
> (hamm/non-free/source/graphics/xwpick_2.20-5.dsc) is not a directory
> Try `cp --help' for more information.
> Looking at the "Makefile" (actually "Rules.non-free") it does indeed
> appear to be an incorrect syntax for xargs. 
> However, I don't want to peruse a filelist, I want to add all the files
> in binary-all, binary-i386, and source dirs.  So I steal a rule from
> "Rules", and change the target to look like this:
> install-non-free:
>         (cd $(ARCHIVE); cp -dpRPl \

That indent is spaces, and it should be a TAB

TABs and spaces are not the same thing in Makefiles.

The actions need to be indented with a TAB ``separator''

BTW you are right in noting that the non-free targets are broken.  I didn't 
have the time or inclination to debug them during the release (since we 
decided not to release a non-free CD)

Please send me any patches you make, and I'll try to make the Rules suit all 
the options that people come up with.

Cheers, Phil.

Reply to: