replaced hardcoded pngdir with built-in ~~
authorArun Persaud <arun@nubati.net>
Sun, 12 Oct 2014 17:09:51 +0000 (10:09 -0700)
committerArun Persaud <arun@nubati.net>
Sun, 12 Oct 2014 17:11:11 +0000 (10:11 -0700)
don't need to create xboard.conf from xboard.conf.in anymore

Makefile.am
xboard.conf [moved from xboard.conf.in with 96% similarity]

index 847084a..5316962 100644 (file)
@@ -63,7 +63,7 @@ EXTRA_DIST = pixmaps themes png sounds winboard \
        xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.desktop xboard-config.desktop \
        xboard-fen-viewer.desktop  xboard-pgn-viewer.desktop  xboard-tourney.desktop xboard.xml \
        COPYRIGHT FAQ.html engine-intf.html ics-parsing.txt readme.htm zippy.README \
-       xboard.conf.in SHORTLOG DIFFSTAT history.c ABOUT-NLS $(FRONTENDextras)
+       xboard.conf SHORTLOG DIFFSTAT history.c ABOUT-NLS $(FRONTENDextras)
 
 DISTCLEANFILES = stamp-h
 
@@ -198,21 +198,6 @@ dist_sounds_DATA = \
   sounds/cymbal.wav     sounds/pop2.wav   sounds/slap.wav     sounds/ding1.wav      sounds/laser.wav \
   sounds/woodthunk.wav  sounds/gong.wav   sounds/penalty.wav  sounds/honkhonk.wav   sounds/phone.wav  sounds/roar.wav
 
-
-### set correct dir in xboard.conf
-
-edit = sed -e 's|@pngdir[@]|$(pngdir)|g' \
-           -e 's|@soundsdir[@]|$(soundsdir)|g'
-
-xboard.conf: Makefile $(srcdir)/xboard.conf.in
-       @echo '  'GEN '  ' $@;
-       @rm -f $@ $@.tmp
-       @$(edit) $(srcdir)/$@.in >$@.tmp
-       @mv $@.tmp $@
-
-distclean-local:
-       -rm -f xboard.conf
-
 ### the man page depends on several files, so we add a special rule
 
 xboard.man: xboard.texi copyright.texi gpl.texinfo version.texi
similarity index 96%
rename from xboard.conf.in
rename to xboard.conf
index 56e5f84..6c43b97 100644 (file)
@@ -24,8 +24,8 @@
 -flashRate 5
 -fontSizeTolerance 4
 -useBoardTexture true
--liteBackTextureFile  "@pngdir@/wood_l.png"
--darkBackTextureFile  "@pngdir@/wood_d.png"
+-liteBackTextureFile  "~~/themes/textures/wood_l.png"
+-darkBackTextureFile  "~~/themes/textures/wood_d.png"
 -overrideLineGap 1
 -highlightMoveWithArrow true
 -recentEngines 4
@@ -42,7 +42,7 @@
 -showTargetSquares true
 -seekGraph true
 -soundProgram "aplay -q"
--soundDirectory "@soundsdir@"
+-soundDirectory "~~/sounds"
 -soundTell phone.wav
 -soundChallenge gong.wav
 -soundMove woodthunk.wav