Revision 10225
Added by Aaron Marcuse-Kubitza over 11 years ago
bin/my2pg | ||
---|---|---|
6 | 6 |
|
7 | 7 |
. "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/../lib/sh/util.sh |
8 | 8 |
|
9 |
selfDir="$(dirname -- "$0")" |
|
10 |
|
|
11 | 9 |
sed \ |
12 | 10 |
-e 's/ UNIQUE KEY ("[^"]*")/ \/*CONSTRAINT \1 *\/UNIQUE/g' \ |
13 | 11 |
-e 's/ UNIQUE KEY/ UNIQUE/g' \ |
... | ... | |
26 | 24 |
-e 's/ ("[^"]*") enum(\([^()]*\))/ \1 text CHECK (\1 in \2)/g' \ |
27 | 25 |
-e "s/ set\('([^()]*)'\)/ \1/g" \ |
28 | 26 |
"$@"\ |
29 |
|"$selfDir/my2pg.data" |
|
27 |
|"$top_dir/my2pg.data" |
Also available in: Unified diff
bin/my2pg: use util.sh $top_dir instead of setting $selfDir