]> Dogcows Code - chaz/tar/commitdiff
(slurp): Create .(cvs|git)ignore if not present
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 8 Dec 2006 13:39:58 +0000 (13:39 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 8 Dec 2006 13:39:58 +0000 (13:39 +0000)
bootstrap

index 21ed528e319bb735f3661776cbab7b92ae10384d..0ea005f8a593585722c8145dd777dbbfe8ab8494 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -486,13 +486,38 @@ slurp() {
       fi || exit
     done
 
-    for dot_ig in .cvsignore .gitignore; do
-      ig=$dir/$dot_ig
-      if test -n "$copied" && test -f $ig; then
-       echo "$copied" | sort -u - $ig | cmp -s - $ig ||
-       echo "$copied" | sort -u - $ig -o $ig || exit
+    if test -n "$copied"; then
+      copied="Makefile
+Makefile.in
+$copied"
+      if test -d CVS; then
+       dot_ig=.cvsignore
+      else
+        dor_ig=.gitignore
       fi
-    done
+
+      ig=$dir/$dot_ig
+      if test -f $ig; then
+         echo "$copied" | sort -u - $ig | cmp -s - $ig ||
+         echo "$copied" | sort -u - $ig -o $ig
+      else
+          copied="$dot_ig
+$copied"         
+         if [ "$dir" = "po" ]; then
+           copied="LINGUAS
+Makevars
+POTFILES
+*.mo
+*.gmo
+*.po
+remove-potcdate.sed
+stamp-po
+$package.pot
+$copied"
+          fi  
+          echo "$copied" | sort -u -o $ig
+      fi || exit
+    fi
   done
 }
 
This page took 0.025061 seconds and 4 git commands to generate.