menu: Write data directory during build instead of with wmaker.inst.
commitd364afff0295ad8487d29023f7cdc7e71e2a89da
authorDoug Torrance <dtorrance@piedmont.edu>
Fri, 18 Aug 2017 01:02:25 +0000 (17 21:02 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 18 Aug 2017 01:14:11 +0000 (18 02:14 +0100)
tree27eaa1d8913952c4080512007fd801bc38abfd97
parent273d17a0be1a00435e3b98791359b47908dab443
menu: Write data directory during build instead of with wmaker.inst.

Many of the menu files contain the macro #wmdatadir# as a placeholder for
the data directory containing Window Maker themes, styles, background
pixmaps, etc.  This macro is replaced by the the actual path to the data
directory (by default /usr/local/share/WindowMaker) by the wmaker.inst
script, but only when copying WMRootMenu to the user's home directory.

Instead, we replace the macro during the build.  This way, *every* menu
file has the correct path.

Note that several of the files in question were not previously generated
during build.  These have been renamed with a .in extension.
WindowMaker/Makefile.am
WindowMaker/plmenu.pl.in [moved from WindowMaker/plmenu.pl with 100% similarity]
WindowMaker/plmenu.zh_CN.in [moved from WindowMaker/plmenu.zh_CN with 100% similarity]
WindowMaker/wmmacros.in [moved from WindowMaker/wmmacros with 100% similarity]
util/wmaker.inst.in