Use wprefs_bindir output variable to set WPrefs path in menus.
commitd48a37060c8ba29eb07e6301497068d2ed0dbddd
authorDoug Torrance <dtorrance@piedmont.edu>
Thu, 19 Jan 2017 23:24:30 +0000 (19 18:24 -0500)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 19 Jan 2017 23:40:13 +0000 (19 18:40 -0500)
tree8443153633e80a82787bca47f913d161f783cdd7
parent23417d99347ad60cc9535fa1d3244ed3ef7a1623
Use wprefs_bindir output variable to set WPrefs path in menus.

The path to WPrefs has been hardcoded in many of the menu files to
/usr/local/GNUstep/Applications/WPrefs.app/WPrefs, which would only actually
work if the user ran something like:
     ./configure --with-gnustepdir=/usr/local/GNUstep
during build.

Instead, we add a .in extension to all menu files with this issue and use sed
to use the actual WPrefs path (given by the wprefs_bindir output variable) and
generate a new menu file.

A very similar idea is already used to generate the WMState file, which sets
WPrefs as the command for the Window Maker logo tile in the dock.

This patch fixes Debian bug #851737:
https://bugs.debian.org/851737
23 files changed:
.gitignore
WindowMaker/Makefile.am
WindowMaker/menu.bg.in [moved from WindowMaker/menu.bg with 99% similarity]
WindowMaker/menu.fi.in [moved from WindowMaker/menu.fi with 99% similarity]
WindowMaker/menu.fy.in [moved from WindowMaker/menu.fy with 99% similarity]
WindowMaker/menu.hu.in [moved from WindowMaker/menu.hu with 99% similarity]
WindowMaker/menu.in [moved from WindowMaker/menu with 99% similarity]
WindowMaker/menu.ko.in [moved from WindowMaker/menu.ko with 99% similarity]
WindowMaker/menu.nl.in [moved from WindowMaker/menu.nl with 99% similarity]
WindowMaker/menu.ro.in [moved from WindowMaker/menu.ro with 99% similarity]
WindowMaker/menu.sk.in [moved from WindowMaker/menu.sk with 99% similarity]
WindowMaker/menu.zh_TW.in [moved from WindowMaker/menu.zh_TW with 98% similarity]
WindowMaker/plmenu.bg.in [moved from WindowMaker/plmenu.bg with 98% similarity]
WindowMaker/plmenu.es.in [moved from WindowMaker/plmenu.es with 98% similarity]
WindowMaker/plmenu.fi.in [moved from WindowMaker/plmenu.fi with 99% similarity]
WindowMaker/plmenu.fy.in [moved from WindowMaker/plmenu.fy with 98% similarity]
WindowMaker/plmenu.in [moved from WindowMaker/plmenu with 98% similarity]
WindowMaker/plmenu.ja.in [moved from WindowMaker/plmenu.ja with 98% similarity]
WindowMaker/plmenu.ko.in [moved from WindowMaker/plmenu.ko with 98% similarity]
WindowMaker/plmenu.nl.in [moved from WindowMaker/plmenu.nl with 98% similarity]
WindowMaker/plmenu.ro.in [moved from WindowMaker/plmenu.ro with 98% similarity]
WindowMaker/plmenu.sk.in [moved from WindowMaker/plmenu.sk with 98% similarity]
WindowMaker/plmenu.zh_TW.in [moved from WindowMaker/plmenu.zh_TW with 98% similarity]