summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-01-17 12:46:32 +0000
committerBruno Haible <bruno@clisp.org>2009-06-22 01:02:03 +0200
commit54f43cc00b3782c3055d554a8badf6f579d7c070 (patch)
tree2c721907fb02e54cd9824998a852924a7fd36ab7 /misc
parent1c466eb5431fd3d3b6f616cc31cef925e768b074 (diff)
downloadexternal_gettext-54f43cc00b3782c3055d554a8badf6f579d7c070.zip
external_gettext-54f43cc00b3782c3055d554a8badf6f579d7c070.tar.gz
external_gettext-54f43cc00b3782c3055d554a8badf6f579d7c070.tar.bz2
Handle po/Makevars specially.
Diffstat (limited to 'misc')
-rw-r--r--misc/ChangeLog5
-rw-r--r--misc/gettextize.in24
2 files changed, 26 insertions, 3 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog
index 56f53f7..75df61e 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-15 Bruno Haible <bruno@clisp.org>
+
+ * gettextize.in: Handle po/Makevars specially, don't overwrite the
+ previous customizations.
+
2002-01-12 Bruno Haible <bruno@clisp.org>
* gettextize.in: Update year in --version output.
diff --git a/misc/gettextize.in b/misc/gettextize.in
index 418e206..febc7ba 100644
--- a/misc/gettextize.in
+++ b/misc/gettextize.in
@@ -198,9 +198,27 @@ fi
# Copy files to po/ subdirectory.
cd po
for file in *; do
- rm -f $srcdir/po/$file
- ($try_ln_s && ln -s $gettext_dir/po/$file $srcdir/po/$file && $echo "Symlinking file po/$file") 2>/dev/null ||
- { $echo "Copying file po/$file"; cp $file $srcdir/po/$file; }
+ case $file in
+ Makevars)
+ rm -f $srcdir/po/$file.template
+ ($try_ln_s && ln -s $gettext_dir/po/$file $srcdir/po/$file.template && $echo "Symlinking file po/$file.template") 2>/dev/null ||
+ { $echo "Copying file po/$file.template"; cp $file $srcdir/po/$file.template; }
+ if test -f $srcdir/po/$file; then
+ echo "Please update po/$file so that it defines all the variables mentioned"
+ echo "in po/$file.template."
+ else
+ echo "Please create po/$file from the template in po/$file.template."
+ fi
+ echo "You can then remove po/$file.template."
+ ;;
+ *)
+ rm -f $srcdir/po/$file~
+ cp -p $srcdir/po/$file $srcdir/po/$file~
+ rm -f $srcdir/po/$file
+ ($try_ln_s && ln -s $gettext_dir/po/$file $srcdir/po/$file && $echo "Symlinking file po/$file") 2>/dev/null ||
+ { $echo "Copying file po/$file"; cp $file $srcdir/po/$file; }
+ ;;
+ esac
done
DATE=`date +%Y-%m-%d`
cat > $srcdir/po/ChangeLog.tmp <<EOF