[Pkg-wmaker-commits] [wmclock] 02/04: wmclock: Use defines to get language xpms instead of creating symlinks.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Sep 24 11:13:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmclock.

commit cdd06d3af5ba12e37c4b5da0a72b9fe92f6ae7e5
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Thu Sep 24 02:24:08 2015 -0400

    wmclock: Use defines to get language xpms instead of creating symlinks.
---
 configure.ac | 7 +++----
 wmclock.c    | 4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 11da724..82a2382 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,10 +17,9 @@ if test ! -d "${LangDir}"; then
    AC_MSG_ERROR([Cannot find language directory '${LangDir}'.])
 fi
 
-echo "configuring for ${with_lang} day-of-week and month names..."
-rm -f month.xpm weekday.xpm
-ln -s "./${LangDir}/month.xpm" .
-ln -s "./${LangDir}/weekday.xpm" .
+AC_DEFINE_UNQUOTED(MONTH_XPM, ["${LangDir}/month.xpm"])
+AC_DEFINE_UNQUOTED(WEEKDAY_XPM, ["${LangDir}/weekday.xpm"])
+AC_MSG_NOTICE([configuring for ${with_lang} day-of-week and month names...])
 
 PKG_CHECK_MODULES([x11], [x11])
 PKG_CHECK_MODULES([xpm], [xpm])
diff --git a/wmclock.c b/wmclock.c
index eee17dd..7917917 100644
--- a/wmclock.c
+++ b/wmclock.c
@@ -109,8 +109,8 @@
 #ifndef ONLY_SHAPED_WINDOW
 # include "clk.xpm"
 #endif /* !ONLY_SHAPED_WINDOW */
-#include "month.xpm"
-#include "weekday.xpm"
+#include MONTH_XPM
+#include WEEKDAY_XPM
 #include "xpm/date.xpm"
 #include "xpm/led.xpm"
 #include "xpm/mask.xbm"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmclock.git



More information about the Pkg-wmaker-commits mailing list