]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 273209: makes CVS ignore skins/.cvsignore; r=jouni; a=myk
authormyk%mozilla.org <>
Sat, 9 Apr 2005 15:11:32 +0000 (15:11 +0000)
committermyk%mozilla.org <>
Sat, 9 Apr 2005 15:11:32 +0000 (15:11 +0000)
checksetup.pl

index ce9278f05a1c8d04d025929b0fbaa874f29f47eb..fe30711a4cbc8b35404f054ccb79c79e0651056d 100755 (executable)
@@ -960,30 +960,9 @@ if (!-d "skins/custom") {
     mkdir "skins/custom", 0700;
 }
 
-# Whether or not the custom skin directory has been ignored (i.e. added to
-# skins/.cvsignore).
-sub customSkinsIgnored {
-    if (!-e "skins/.cvsignore") {
-        return 0;
-    }
-    else {
-        open CVSIGNORE, '<', "skins/.cvsignore";
-        while (<CVSIGNORE>) {
-            chomp;
-            if (/^custom$/) {
-                close CVSIGNORE;
-                return 1;
-            }
-        }
-        close CVSIGNORE;
-        return 0;
-    }
-}
-
-# If the custom skin directory hasn't been ignored, ignore it (i.e. add it to
-# skins/.cvsignore).
-if (!customSkinsIgnored()) {
+if (!-e "skins/.cvsignore") {
     open CVSIGNORE, '>>', "skins/.cvsignore";
+    print CVSIGNORE ".cvsignore\n";
     print CVSIGNORE "custom\n";
     close CVSIGNORE;
 }