~strahinja

Belgrade, Serbia

https://strahinja.org

Programmer with a wide programming skill set. Started with Basic in the 1990s, current focus: C, suckless programs.

Trackers

~strahinja/scribe

Last active 6 months ago

~strahinja/wmgen

Last active 7 months ago

~strahinja/dtree

Last active 9 months ago

~strahinja/experiments

Last active 10 months ago

~strahinja/ste

Last active 1 year, 26 days ago

~strahinja/suite66-scripts

Last active 2 years ago

~strahinja/sled

Last active 2 years ago

~strahinja/translations

Last active 2 years ago

~strahinja/adash

Last active 2 years ago

~strahinja/text-tools

Last active 2 years ago
View more

#1 man directories not created, wrong manpage mode 8 months ago

Ticket created by ~strahinja on ~bptato/chawan

The install target doesn't seem to create the needed directories. Since -D is not passed to install, if, for example, /usr/local/share/man/man5 doesn't exist, all files under .obj/man ending with .5 will be copied to a file /usr/local/share/man/man5, with each install overwriting the contents of that file.

Also, manpages are copied with the mode 655, equal to rw-r-xr-x, which is very weird. Usually for regular files 644 (=rw-r--r--) is used, and 755 (=rwxr-xr-x) for executables and directories.

I propose either using mkdir to create the necessary directories if they don't exist, or passing -D to install. If the latter is applied, then the filenames also need to be repeated in the destination argument:

install -Dm644 "$(OBJDIR)/man/cha-config.5" "$(DESTDIR)$(manprefix5)/cha-config.5"