diff options
author | Bruno Haible <bruno@clisp.org> | 2000-12-08 18:09:55 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2000-12-08 18:09:55 +0000 |
commit | 58e8b59181c2589063f0fbdcfd2959b8a3da466c (patch) | |
tree | f508ba7abc7ad5ac711f6184300449417460a525 /misc/gettextize.in | |
parent | 823767e0d4826969e1a62f7c63e099eea226afc9 (diff) | |
download | external_gettext-58e8b59181c2589063f0fbdcfd2959b8a3da466c.zip external_gettext-58e8b59181c2589063f0fbdcfd2959b8a3da466c.tar.gz external_gettext-58e8b59181c2589063f0fbdcfd2959b8a3da466c.tar.bz2 |
Keep RCS and CVS subdirs in intl, don't erase them.
Diffstat (limited to 'misc/gettextize.in')
-rw-r--r-- | misc/gettextize.in | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/misc/gettextize.in b/misc/gettextize.in index 75e3c2e..4eb8fbf 100644 --- a/misc/gettextize.in +++ b/misc/gettextize.in @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +# Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -107,11 +107,28 @@ po/Makefile.in.in exists: use option -f if you really want to delete it." exit 1 fi -if test -f NLS && test $force -eq 0; then - $echo "NLS exists: use option -f if you really want to delete it." +if test -f ABOUT-NLS && test $force -eq 0; then + $echo "ABOUT-NLS exists: use option -f if you really want to delete it." exit 1 fi +if test -d intl; then + # Remove everything inside intl except for RCS and CVS subdirs and invisible + # files. + (cd intl && + for f in *; do + if test CVS != "$f" && test RCS != "$f"; then + rm -rf "$f" + fi + done) +else + rm -f intl + mkdir intl || { + $echo "failed to create intl/ subdirectory" + exit 1; + } +fi + rm -fr intl mkdir intl || { $echo "failed to create intl/ subdirectory" |