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

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

[Wesnoth-cvs-commits] wesnoth Makefile.am


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth Makefile.am
Date: Sat, 07 May 2005 16:40:28 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    05/05/07 20:40:28

Modified files:
        .              : Makefile.am 

Log message:
        Correctly create the locales when there are already some links from a 
previous install.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/Makefile.am.diff?tr1=1.32&tr2=1.33&r1=text&r2=text

Patches:
Index: wesnoth/Makefile.am
diff -u wesnoth/Makefile.am:1.32 wesnoth/Makefile.am:1.33
--- wesnoth/Makefile.am:1.32    Sat Apr 23 17:09:48 2005
+++ wesnoth/Makefile.am Sat May  7 20:40:28 2005
@@ -33,9 +33,11 @@
          $(install_sh_DATA) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
        done
 if DUMMYLOCALES
-       $(mkdir_p) "$(DESTDIR)$(pkgdatadir)/locales"; \
+       $(mkdir_p) "$(DESTDIR)$(pkgdatadir)/locales"
+       if test -d "$(DESTDIR)$(pkgdatadir)/locales/C" ; then rm -r 
"$(DESTDIR)$(pkgdatadir)/locales/C" ; fi
        echo | localedef --force "$(DESTDIR)$(pkgdatadir)/locales/C" 2> 
/dev/null; \
        for loc in `sed -n 's/^.*language_def..\(.._..\).*$$/\1/p' 
"$(srcdir)/src/language.cpp"`; do \
+         if test -L "$(DESTDIR)$(pkgdatadir)/locales/$$loc" ; then rm 
"$(DESTDIR)$(pkgdatadir)/locales/$$loc" ; fi; \
          ln -s C "$(DESTDIR)$(pkgdatadir)/locales/$$loc"; done; \
        true
 endif




reply via email to

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