[pkg-fgfs-crew] r166 - in /fgfs-base/trunk/debian: postinst prerm rules

ovek at users.alioth.debian.org ovek at users.alioth.debian.org
Sun Aug 21 21:44:04 UTC 2011


Author: ovek
Date: Sun Aug 21 21:44:04 2011
New Revision: 166

URL: http://svn.debian.org/wsvn/pkg-fgfs/?sc=1&rev=166
Log:
The FlightGear data directory name is now lowercase.

Modified:
    fgfs-base/trunk/debian/postinst
    fgfs-base/trunk/debian/prerm
    fgfs-base/trunk/debian/rules

Modified: fgfs-base/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-fgfs/fgfs-base/trunk/debian/postinst?rev=166&op=diff
==============================================================================
--- fgfs-base/trunk/debian/postinst (original)
+++ fgfs-base/trunk/debian/postinst Sun Aug 21 21:44:04 2011
@@ -1,11 +1,11 @@
 #!/bin/sh -e
-if [ -d /usr/share/FlightGear ]; then
+if [ -d /usr/share/games/FlightGear ]; then
   # the user seem to have manually added scenery to the old location
-  echo Moving /usr/share/FlightGear to /usr/share/games/FlightGear...
-  cp -a /usr/share/FlightGear/* /usr/share/games/FlightGear
-  rm -rf /usr/share/FlightGear
+  echo Moving /usr/share/games/FlightGear to /usr/share/games/flightgear...
+  cp -a /usr/share/games/FlightGear/* /usr/share/games/flightgear
+  rm -rf /usr/share/games/FlightGear
 fi
 
-[ -e /usr/share/games/FlightGear/Timezone ] || ln -sTf /usr/share/zoneinfo /usr/share/games/FlightGear/Timezone
+[ -e /usr/share/games/flightgear/Timezone ] || ln -sTf /usr/share/zoneinfo /usr/share/games/flightgear/Timezone
 
 #DEBHELPER#

Modified: fgfs-base/trunk/debian/prerm
URL: http://svn.debian.org/wsvn/pkg-fgfs/fgfs-base/trunk/debian/prerm?rev=166&op=diff
==============================================================================
--- fgfs-base/trunk/debian/prerm (original)
+++ fgfs-base/trunk/debian/prerm Sun Aug 21 21:44:04 2011
@@ -1,4 +1,4 @@
 #!/bin/sh -e
-[ -h /usr/share/games/FlightGear/Timezone ] && rm -f /usr/share/games/FlightGear/Timezone
+[ -h /usr/share/games/flightgear/Timezone ] && rm -f /usr/share/games/flightgear/Timezone
 
 #DEBHELPER#

Modified: fgfs-base/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-fgfs/fgfs-base/trunk/debian/rules?rev=166&op=diff
==============================================================================
--- fgfs-base/trunk/debian/rules (original)
+++ fgfs-base/trunk/debian/rules Sun Aug 21 21:44:04 2011
@@ -30,7 +30,7 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -i -k
-	dh_installdirs -i -A usr/share/games/FlightGear
+	dh_installdirs -i -A usr/share/games/flightgear
 
 	cp -a $(DATA)/AI $(DATA)/Airports $(DATA)/Astro \
 	      $(DATA)/ATC $(DATA)/Effects $(DATA)/Environment \
@@ -41,24 +41,24 @@
 	      $(DATA)/Textures $(DATA)/Textures.high \
 	      $(DATA)/Traffic $(DATA)/Translations $(DATA)/gui \
 	      $(DATA)/*.dtd $(DATA)/*.xml $(DATA)/version \
-	   debian/fgfs-base/usr/share/games/FlightGear
+	   debian/fgfs-base/usr/share/games/flightgear
 	cp -a $(DATA)/Aircraft \
-	   debian/fgfs-aircraft-base/usr/share/games/FlightGear
+	   debian/fgfs-aircraft-base/usr/share/games/flightgear
 	cp -a $(DATA)/Models \
-	   debian/fgfs-models-base/usr/share/games/FlightGear
-	cp -a $(DATA)/Docs debian/fgfs-base/usr/share/games/FlightGear
+	   debian/fgfs-models-base/usr/share/games/flightgear
+	cp -a $(DATA)/Docs debian/fgfs-base/usr/share/games/flightgear
 
 	# put shared aircraft parts into fgfs-base rather than fgfs-aircraft-base
-	dh_installdirs --package=fgfs-base usr/share/games/FlightGear/Aircraft
-	mv debian/fgfs-aircraft-base/usr/share/games/FlightGear/Aircraft/Generic \
-	   debian/fgfs-aircraft-base/usr/share/games/FlightGear/Aircraft/Instruments \
-	   debian/fgfs-aircraft-base/usr/share/games/FlightGear/Aircraft/Instruments-3d \
-	   debian/fgfs-base/usr/share/games/FlightGear/Aircraft
+	dh_installdirs --package=fgfs-base usr/share/games/flightgear/Aircraft
+	mv debian/fgfs-aircraft-base/usr/share/games/flightgear/Aircraft/Generic \
+	   debian/fgfs-aircraft-base/usr/share/games/flightgear/Aircraft/Instruments \
+	   debian/fgfs-aircraft-base/usr/share/games/flightgear/Aircraft/Instruments-3d \
+	   debian/fgfs-base/usr/share/games/flightgear/Aircraft
 
 	# fix some insane permissions
-	find debian/fgfs-base/usr/share/games/FlightGear -type f -exec chmod 644 {} \;
-	find debian/fgfs-aircraft-base/usr/share/games/FlightGear -type f -exec chmod 644 {} \;
-	find debian/fgfs-models-base/usr/share/games/FlightGear -type f -exec chmod 644 {} \;
+	find debian/fgfs-base/usr/share/games/flightgear -type f -exec chmod 644 {} \;
+	find debian/fgfs-aircraft-base/usr/share/games/flightgear -type f -exec chmod 644 {} \;
+	find debian/fgfs-models-base/usr/share/games/flightgear -type f -exec chmod 644 {} \;
 
 # Build architecture-independent files here.
 binary-indep: install




More information about the pkg-fgfs-crew mailing list