diff --git a/ChangeLog b/ChangeLog index 910d43148..68e04d77f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ $Source$ * config.inc.php, tbl_change.php, tbl_replace.php, libraries/common.lib.php, libraries/config_import.lib.php: Support for insert multiple rows at once (RFE #749733). + * scripts/extchg.sh, scripts/inno2pma.sh: Removed unneeded scripts. 2004-05-04 Michal Cihar * libraries/sqlparser.data.php: Add ENGINE to reserved words (used instead diff --git a/scripts/extchg.sh b/scripts/extchg.sh deleted file mode 100755 index e16af2f05..000000000 --- a/scripts/extchg.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# -# $Id$ -# -# original php3->phtml converter by Pavel Piankov -# modified by Tobias Ratschiller to allow any file extension -# part of the phpMyAdmin distribution -# -# 2001-07-07, lem9@users.sourceforge.net: -# - supports sub-directories -# - no more bak directory - -if [ $# != 2 ] -then - echo "Usage: extchg.sh " - echo "" - echo "Example: extchg.sh php3 php" - exit -fi - -for i in `find . -name "*.$1"` - do - echo $i - sed -e 's/\.'$1'/\.'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'` - rm $i - done; - -for i in `find . -name "generator.sh"` - do - echo $i - sed -e 's/\.'$1'/\.'$2'/g' $i > $i.new - rm $i - mv $i.new $i - done; - diff --git a/scripts/inno2pma.sh b/scripts/inno2pma.sh deleted file mode 100644 index 3ac1999e0..000000000 --- a/scripts/inno2pma.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# -# inno2pma -# -# insert InnoDB foreign keys into phpmyadmin relation table -# by Ernie Hershey 3/15/2003 -# -# THIS IS AN EXPERIMENTAL SCRIPT - PLEASE DO NOT USE THIS -# IF YOU DON'T UNDERSTAND WHAT IT IS DOING! -# -# This was posted on the Open Discussion forum by -# ehershey. The idea is interesting, however we should -# implement it in PHP. -# -# In future versions of phpMyAdmin the use of a proprietary -# storage of relational tables will be discarded in favor of -# the InnoDB relations (or in addition to). Support of InnoDB -# relations is on our ToDo-List. -# -# requires : -# mysql client tools -# standard unix shell tools -# special PHPMyAdmin relation table setup -# -# - -# config - -database="triohost2" -#table="domains" -relationdb="phpmyadmin" -relationtable="PMA_relation" - -# end config - -mysqldump --no-data $database $table | egrep "^CREATE|^ FOREIGN" | while read line -do - line=`echo "$line"|sed 's/^ *//g` - first_token=`echo "$line" | cut -f1 -d" "` - case $first_token in - CREATE) - table_name=`echo "$line"|sed 's/CREATE TABLE \(.*\) (/\1/'` - echo "DELETE FROM $relationtable WHERE master_db='$database' AND master_table='$table_name'" | mysql $relationdb - ;; - FOREIGN) - localcolumn=`echo "$line" | cut -f2 -d\\\`` - foreigntablefull=`echo "$line" | cut -f4 -d\\\`` - foreigndb=`echo $foreigntablefull | cut -f1 -d.` - foreigntable=`echo $foreigntablefull | cut -f2 -d.` - foreigncolumn=`echo "$line" | cut -f6 -d\\\`` - - echo processing foreign key on column $database.$table_name.$localcolumn to $foreigndb.$foreigntable.$foreigncolumn >&2 - echo "INSERT INTO $relationtable VALUES ('$database','$table_name','$localcolumn','$foreigndb','$foreigntable','$foreigncolumn');" | mysql $relationdb - ;; - esac -done