(slurp): Create .(cvs|git)ignore if not present

This commit is contained in:
Sergey Poznyakoff
2006-12-08 13:39:58 +00:00
parent b15e3f1bbd
commit b09417ca8d

View File

@@ -486,13 +486,38 @@ slurp() {
fi || exit fi || exit
done done
for dot_ig in .cvsignore .gitignore; do if test -n "$copied"; then
ig=$dir/$dot_ig copied="Makefile
if test -n "$copied" && test -f $ig; then Makefile.in
echo "$copied" | sort -u - $ig | cmp -s - $ig || $copied"
echo "$copied" | sort -u - $ig -o $ig || exit if test -d CVS; then
dot_ig=.cvsignore
else
dor_ig=.gitignore
fi 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 done
} }