Author: ceros-guest
Date: 2008-05-07 03:02:36 +0000 (Wed, 07 May 2008)
New Revision: 6879

Modified:
   packages/trunk/vegastrike-data/debian/changelog
   packages/trunk/vegastrike-data/debian/rules
Log:
Fixing lintian warnings

Modified: packages/trunk/vegastrike-data/debian/changelog
===================================================================
--- packages/trunk/vegastrike-data/debian/changelog     2008-05-07 02:25:11 UTC 
(rev 6878)
+++ packages/trunk/vegastrike-data/debian/changelog     2008-05-07 03:02:36 UTC 
(rev 6879)
@@ -14,7 +14,8 @@
   * Updated package description.
   * No longer need README.Debian.
   * Updated install paths.
-  * Removing use of generic cargo stuff.
+  * Removing use of generic cargo stuff. File will remain in diff.
+  * Take care of lintian warnings with scripts.
 
  -- Andres Mejia <[EMAIL PROTECTED]>  Tue, 06 May 2008 16:04:23 -0400
 

Modified: packages/trunk/vegastrike-data/debian/rules
===================================================================
--- packages/trunk/vegastrike-data/debian/rules 2008-05-07 02:25:11 UTC (rev 
6878)
+++ packages/trunk/vegastrike-data/debian/rules 2008-05-07 03:02:36 UTC (rev 
6879)
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
-# based on debhelper rules and tuxracer-data package
 
+# This is used when finding files that shouldn't be executable.
+EXCLUSIONS=""
+
 clean:
        dh_testdir
        dh_testroot
@@ -22,9 +24,17 @@
        dh_testroot
        dh_clean -k
        dh_install
-       find debian/vegastrike-data/usr/share/games/vegastrike -perm 755 -type 
f ! -name '*.py' -print0 | xargs -0 --no-run-if-empty chmod 644 
-#      mv debian/vegastrike-data/usr/share/games/vegastrike/.vegastrike \
-#         debian/vegastrike-data/usr/share/games/vegastrike/.vegastrike-0.4.x
+# Make files that are not executable non-executable
+       find debian/vegastrike-data/usr/share/games/vegastrike -perm 755 -type 
f \
+               ! -regex '.*\.py$' -print0 | xargs -0 --no-run-if-empty chmod 
644
+# Find non-executable python scripts and set the appropriate permissions
+       for PY in `find debian/vegastrike-data/usr/share/games/vegastrike -type 
f \
+               -regex '.*\.py$' -print0 | xargs -0 -r grep -e '^#!\s*\/usr' 
-L`; \
+               do chmod 644 $PY; done
+# Find executable python scripts and set the appropriate permissions
+       for PY in `find debian/vegastrike-data/usr/share/games/vegastrike -type 
f \
+               -regex '.*\.py$' -print0 | xargs -0 -r grep -e '^#!\s*\/usr' 
-l`; \
+               do chmod 755 $PY; done
 
 # Build architecture-independent files here.
 binary-indep: install


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to