From 8a063666bc0d69f38484a114d3a6f22a64d85f7d Mon Sep 17 00:00:00 2001 From: Robin Johnson Date: Wed, 24 Apr 2002 19:14:20 +0000 Subject: [PATCH] Updated comments. Added configuration converter file. --- ChangeLog | 3 +++ scripts/convertcfg.pl | 19 +++++++++++++++++++ scripts/remove_control_m.sh | 5 +++++ 3 files changed, 27 insertions(+) create mode 100755 scripts/convertcfg.pl diff --git a/ChangeLog b/ChangeLog index f3314bdb7..53660c438 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,9 @@ $Source$ 2002-04-24 Robin Johnson * *.php3 NOT tbl_*.php, Documentation.*: $cfg system changes. + * scripts/extchg.sh: Updated URL + * scripts/convertcfg.pl: Conversion between old config files and new ones. + * scripts/*: Updated comments somewhat 2002-04-23 Marc Delisle * tbl_printview.php3, lang/*.php3: Relation links in printview, diff --git a/scripts/convertcfg.pl b/scripts/convertcfg.pl new file mode 100755 index 000000000..3dcf97228 --- /dev/null +++ b/scripts/convertcfg.pl @@ -0,0 +1,19 @@ +#!/usr/local/bin/perl +# +# $Id$ +# +# Configuration converter +# Converts from old-style (Pre-2.3) configuration files to new format found in PMA-2.3 +# +# Takes input from STDIN, sends output to STDOUT +# +# By Robin Johnson robbat2@users.sourceforge.net +# Many thanks to Patrick Lougheed pat@tfsb.org +# + +while(<>) +{ s/\$cfg(\w+)/\$cfg\[\'$1\'\]/g; + print; + } + + diff --git a/scripts/remove_control_m.sh b/scripts/remove_control_m.sh index 6b88546d6..432c149c7 100755 --- a/scripts/remove_control_m.sh +++ b/scripts/remove_control_m.sh @@ -1,4 +1,9 @@ #!/bin/sh +# +# $Id$ +# +# Script to remove ^M from files for DOS <-> UNIX conversions +# if [ $# != 1 ] then