[Nautilus-list] [Fwd: Get gettext 0.10.35 to stop editing po/ChangeLog?]



Its been a while since James posted this hack and i finally got sick of
manually fixing the bogus po/ChangeLog change.

So i changed eazel-hacking to include this hack.

To use this wonderful technology:

  update
  eazel-rebuild-modules.sh gettext

-re
--- Begin Message ---
On Thu, 31 May 2001, Darin Adler wrote:

> Anyone know how to get gettext 0.10.35 to stop editing po/ChangeLog? I
> think I understand the idea of the feature, but it's inappropriate for how
> we use CVS. It seems to edit it every time I do an autogen.

I assume that you mean 0.10.36 or 37.  Attached is a patch against
gettext-0.10.37 that will remove all the po/ChangeLog modification code.
Unfortunately, I don't think there is a way to turn off that annoying
behaviour without modifying gettext.

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/

--- gettext-0.10.37/misc/gettextize.in.cl	Sat May 19 10:19:37 2001
+++ gettext-0.10.37/misc/gettextize.in	Sat May 19 10:20:40 2001
@@ -172,31 +172,14 @@
   { $echo "Copying file po/$file"; cp $file $srcdir/po/$file; }
 done
 DATE=`date +%Y-%m-%d`
-cat > $srcdir/po/ChangeLog.tmp <<EOF
-$DATE  gettextize  <bug-gnu-utils gnu org>
-
-	* Makefile.in.in: Upgrade to gettext-${version}.
-EOF
 if test -e $srcdir/po/cat-id-tbl.c; then
   $echo "Removing po/cat-id-tbl.c"
   rm -f $srcdir/po/cat-id-tbl.c
-  $echo "	* cat-id-tbl.c: Remove file." >> $srcdir/po/ChangeLog.tmp
 fi
 if test -e $srcdir/po/stamp-cat-id; then
   $echo "Removing po/stamp-cat-id"
   rm -f $srcdir/po/stamp-cat-id
-  $echo "	* stamp-cat-id: Remove file." >> $srcdir/po/ChangeLog.tmp
 fi
-$echo >> $srcdir/po/ChangeLog.tmp
-if test -f $srcdir/po/ChangeLog; then
-  $echo "Adding an entry to po/ChangeLog (backup is in po/ChangeLog~)"
-  cat $srcdir/po/ChangeLog >> $srcdir/po/ChangeLog.tmp
-  cp -p $srcdir/po/ChangeLog $srcdir/po/ChangeLog~
-else
-  $echo "Creating po/ChangeLog"
-fi
-cp $srcdir/po/ChangeLog.tmp $srcdir/po/ChangeLog
-rm -f $srcdir/po/ChangeLog.tmp
 
 echo
 echo "Please add the files"

--- End Message ---


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]