Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit08e8c8a

Browse files
committed
Use sed rather than perl for reindexdb.
1 parent77fcc1c commit08e8c8a

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

‎contrib/reindexdb/reindexdb

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
#
@@ -111,26 +111,35 @@ do
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.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp