Author: glen                         Date: Thu Jun 14 23:42:10 2007 GMT
Module: SPECS                         Tag: GNOME
---- Log message:
- do not repeat names

---- Files affected:
SPECS:
   test.spec (1.32.2.1 -> 1.32.2.2) 

---- Diffs:

================================================================
Index: SPECS/test.spec
diff -u SPECS/test.spec:1.32.2.1 SPECS/test.spec:1.32.2.2
--- SPECS/test.spec:1.32.2.1    Fri Jun 15 01:38:45 2007
+++ SPECS/test.spec     Fri Jun 15 01:42:04 2007
@@ -20,13 +20,18 @@
 
 %build
 awk -F: '
-/^##/{pkg = tolower(substr($0, 4)); d = 0; next }
-/^#/ {t = tolower(substr($0, 3)); pkg = pkg "-"  t; d = 0; next }
+/^##/{pkg = tolower(substr($0, 4)); subpkg = ""; d = 0; next }
+/^#/ {subpkg = tolower(substr($0, 3)); d = 0; next }
 
 !/^$/{
 if (!d) {
-       printf("\n%%%%files %%s\n", pkg);
-       printf("\n%%%%package %%s\n", pkg);
+       if (subpkg) {
+               name = pkg "-" subpkg;
+       } else {
+               name = pkg;
+       }
+       printf("\n%%%%files %%s\n", name);
+       printf("\n%%%%package %%s\n", name);
        d = 1;
 }
 printf("Requires: %%s >= %%s\n", $2, $3);
@@ -45,6 +50,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.32.2.2  2007/06/14 23:42:04  glen
+- do not repeat names
+
 Revision 1.32.2.1  2007/06/14 23:38:45  glen
 - something that might be useful
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/test.spec?r1=1.32.2.1&r2=1.32.2.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to