wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth configure.ac


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth configure.ac
Date: Tue, 19 Oct 2004 18:36:37 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    04/10/19 22:29:23

Modified files:
        .              : configure.ac 

Log message:
        support use of non-installed translations when building out of source 
tree

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/configure.ac.diff?tr1=1.97&tr2=1.98&r1=text&r2=text

Patches:
Index: wesnoth/configure.ac
diff -u wesnoth/configure.ac:1.97 wesnoth/configure.ac:1.98
--- wesnoth/configure.ac:1.97   Tue Oct 19 20:48:20 2004
+++ wesnoth/configure.ac        Tue Oct 19 22:29:23 2004
@@ -10,7 +10,7 @@
 dnl AC_DEFINE([WESNOTH_DEFAULT_SERVER], ["devsrv.wesnoth.org"], [The default 
server for this version])
 AC_DEFINE([WESNOTH_DEFAULT_SERVER], ["devsrv.wesnoth.org:14999"], [The default 
server for this version])
 
-AC_REVISION([$Revision: 1.97 $])
+AC_REVISION([$Revision: 1.98 $])
 
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([foreign 1.5])
@@ -599,12 +599,16 @@
 #######################################################################
 
 rm -rf translations
+case $srcdir in
+/*) podir=$srcdir/po ;;
+*)  podir=../../../$srcdir/po ;;
+esac
 for domain in `grep ^SUBDIRS $srcdir/po/Makefile.am | cut -d= -f2`
 do
     for lang in `cat $srcdir/po/$domain/LINGUAS`
     do
         mkdir -p translations/$lang/LC_MESSAGES
-       ln -s ../../../po/$domain/$lang.gmo 
translations/$lang/LC_MESSAGES/$domain.mo
+       ln -s $podir/$domain/$lang.gmo translations/$lang/LC_MESSAGES/$domain.mo
     done
 done
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]