changeset 7828:44d0f2f7bd56

small helper script for DOCS translators (to change numeric links to alphabetic) Read it for usage instructions.
author gabucino
date Mon, 21 Oct 2002 20:59:42 +0000
parents 1cc558c60e47
children e1c9621b7582
files TOOLS/TOCrenumber.sh
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TOOLS/TOCrenumber.sh	Mon Oct 21 20:59:42 2002 +0000
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Very simple tool to convert numeric TOC links to alphabetic (for translators,
+# it is already done in english DOCS)
+#
+# Usage:
+#  cd DOCS/French
+#  ...
+#  TOCrenumber.sh 2.3.1.2.1 xv_3dfx
+#  ...
+#
+# by Gabucino
+#
+
+for i in *html; do
+  cat $i | sed s/#$1\"/#$2\"/ > $i.new
+  mv -f $i.new $i
+  cat $i | sed s/NAME="$1"\>/NAME="$2"\>/ > $i.new
+  mv -f $i.new $i
+done