File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
3- # Package : reindexdb Version : $Revision: 1.2 $
3+ # Package : reindexdb Version : $Revision: 1.3 $
44# Date : 05/08/2002 Author : Shaun Thomas
55# Req : psql, sh, perl, sed Type : Utility
66#
111111 dbname=" $2 "
112112 shift
113113 ;;
114- -d* |--dbname=* )
115- dbname=` echo $1 | perl -pn -e ' s/^--?d(bname=)?//' `
114+ -d* )
115+ dbname=` echo " $1 " | sed ' s/^-d/' `
116+ ;;
117+ --dbname=* )
118+ dbname=` echo " $1 " | sed ' s/^--dbname=//' `
116119 ;;
117120
118121 # Reindex specific Table. Disables index reindexing.
119122 --table|-t)
120123 table=" $2 "
121124 shift
122125 ;;
123- -t* |--table=* )
124- table=` echo $1 | perl -pn -e ' s/^--?t(able=)?//' `
126+ -t* )
127+ table=` echo " $1 " | sed ' s/^-t//' `
128+ ;;
129+ --table=* )
130+ table=` echo " $1 " | sed ' s/^--table=//' `
125131 ;;
126132
127133 # Reindex specific index. Disables table reindexing.
128134 --index|-i)
129135 index=" $2 "
130136 shift
131137 ;;
132- -i* |--index=* )
133- index=` echo $1 | perl -pn -e ' s/^--?i(ndex=)?//' `
138+ -i* )
139+ index=` echo " $1 " | sed ' s/^-i//' `
140+ ;;
141+ --index=* )
142+ index=` echo " $1 " | sed ' s/^--index=//' `
134143 ;;
135144
136145 # Yeah, no options? Whine, and show usage.
You can’t perform that action at this time.
0 commit comments