On Wednesday 12 February 2003 21:12, David Grant wrote: > Hi everyone, > > I have a simple package with one binary and a bunch of images should go > into "/usr/share/games/gav/themes/classic" > > I basically modified the upstream Makefile, and changed the install > target to look as follows: > > install: all > install -d $(DESTDIR)/usr/bin > $(DESTDIR)/usr/share/games/gav/themes/classic > install ./gav $(DESTDIR)/usr/bin > install ./themes/classic/* > $(DESTDIR)/usr/share/games/gav/themes/classic > > I had actually changed the last line from something like "cp -r > ./themes/* /usr/share/games/gav/themes", because I figured using install > was more proper. >
you can use install, cp, or whatever. The error you are seeing is probably because the files have the executable bit set in their permissions. The files should be rw or just r not rwx or r-x. Since you use install you need to pass the -m option and do something like -m 644 (owner has read nad write, everyone else has read). install by default sets the mode to 755 (rwxr-xr-x).