[gnome-games] gnobots2: Fix creation of .scores files during build



commit c2b71e3d8fba7d5b4956b1764a7aee4365edb6ac
Author: Vincent Untz <vuntz gnome org>
Date:   Thu Jan 5 09:48:21 2012 +0100

    gnobots2: Fix creation of .scores files during build
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667339

 gnobots2/Makefile.am      |   12 ------------
 gnobots2/data/Makefile.am |   12 ++++++++++++
 2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gnobots2/Makefile.am b/gnobots2/Makefile.am
index eec1080..40c0ea9 100644
--- a/gnobots2/Makefile.am
+++ b/gnobots2/Makefile.am
@@ -1,15 +1,3 @@
 SUBDIRS = src data help
 
-install-data-local:
-	-$(mkinstalldirs) $(DESTDIR)$(scoredir)
-	-for cfn in $(config_DATA); do \
-	    cfn2=`echo $$cfn | sed -e 's/\.cfg//'`; \
-            fname1=$(DESTDIR)$(scoredir)/gnobots2.$$cfn2.scores; \
-            fname2=$(DESTDIR)$(scoredir)/gnobots2.$$cfn2-safe.scores; \
-            fname3=$(DESTDIR)$(scoredir)/gnobots2.$$cfn2-super-safe.scores; \
-	    touch $$fname1; chmod 664 $$fname1; chown $(scores_user):$(scores_group) $$fname1; \
-	    touch $$fname2; chmod 664 $$fname2; chown $(scores_user):$(scores_group) $$fname2; \
-	    touch $$fname3; chmod 664 $$fname3; chown $(scores_user):$(scores_group) $$fname3; \
-	    done
-
 -include $(top_srcdir)/git.mk
diff --git a/gnobots2/data/Makefile.am b/gnobots2/data/Makefile.am
index 6649659..8ea5e7f 100644
--- a/gnobots2/data/Makefile.am
+++ b/gnobots2/data/Makefile.am
@@ -41,6 +41,18 @@ Games_in_files = gnobots2.desktop.in.in
 Games_DATA = $(Games_in_files:.desktop.in.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
+install-data-local:
+	-$(mkinstalldirs) $(DESTDIR)$(scoredir)
+	-for cfn in $(config_DATA); do \
+	    cfn2=`echo $$cfn | sed -e 's/\.cfg//'`; \
+            fname1=$(DESTDIR)$(scoredir)/gnobots2.$$cfn2.scores; \
+            fname2=$(DESTDIR)$(scoredir)/gnobots2.$$cfn2-safe.scores; \
+            fname3=$(DESTDIR)$(scoredir)/gnobots2.$$cfn2-super-safe.scores; \
+	    touch $$fname1; chmod 664 $$fname1; chown $(scores_user):$(scores_group) $$fname1; \
+	    touch $$fname2; chmod 664 $$fname2; chown $(scores_user):$(scores_group) $$fname2; \
+	    touch $$fname3; chmod 664 $$fname3; chown $(scores_user):$(scores_group) $$fname3; \
+	    done
+
 EXTRA_DIST = $(cursor_files) \
              $(pixmap_DATA) \
              $(theme_DATA) \



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