Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2013 02:30:18 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r246964 - user/bugmeister/gnats/tools
Message-ID:  <201302190230.r1J2UIvu016374@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer)
Date: Tue Feb 19 02:30:17 2013
New Revision: 246964
URL: http://svnweb.freebsd.org/changeset/base/246964

Log:
  On occasion, our aging and creaky GNATS becomes confused and corrupts the
  gnats-adm/index file.  This well-worn workaround simply forces an index
  rebuild and substitutes the new one.
  
  Since the codebase is such an antique, it's probably not really worth doing
  anything else.

Added:
  user/bugmeister/gnats/tools/reindex.sh   (contents, props changed)

Added: user/bugmeister/gnats/tools/reindex.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/bugmeister/gnats/tools/reindex.sh	Tue Feb 19 02:30:17 2013	(r246964)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+genindex=/usr/local/libexec/gnats/gen-index
+tmpindex=/home/gnats/gnats-adm/!$$!index
+index=/home/gnats/gnats-adm/index
+
+if ${genindex} -n >${tmpindex} ; then
+    mv ${tmpindex} ${index}
+else
+    rm ${tmpindex}
+    echo Failed
+fi
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302190230.r1J2UIvu016374>