File tree 1 file changed +16
-7
lines changed 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
3
- # Package : reindexdb Version : $Revision: 1.2 $
3
+ # Package : reindexdb Version : $Revision: 1.3 $
4
4
# Date : 05/08/2002 Author : Shaun Thomas
5
5
# Req : psql, sh, perl, sed Type : Utility
6
6
#
111
111
dbname=" $2 "
112
112
shift
113
113
;;
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=//' `
116
119
;;
117
120
118
121
# Reindex specific Table. Disables index reindexing.
119
122
--table|-t)
120
123
table=" $2 "
121
124
shift
122
125
;;
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=//' `
125
131
;;
126
132
127
133
# Reindex specific index. Disables table reindexing.
128
134
--index|-i)
129
135
index=" $2 "
130
136
shift
131
137
;;
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=//' `
134
143
;;
135
144
136
145
# Yeah, no options? Whine, and show usage.
You can’t perform that action at this time.
0 commit comments