root/bin/mk_rm_indexes @ 6204
1 | 3248 | aaronmk | #!/bin/sh
|
---|---|---|---|
2 | # Translates `map` debug output to Redmine formatting
|
||
3 | # Usage: map_cmd | self >output
|
||
4 | |||
5 | sedEreFlag="$(test "$(uname)" = Darwin && echo E || echo r)" |
||
6 | |||
7 | sed () { "$(which sed)" -"$sedEreFlag" "$@";} |
||
8 | |||
9 | 3254 | aaronmk | sed -n -e 's/^SET search_path =/&/p' \ |
10 | -e 's/^CREATE INDEX ([^ ]+) .*$/DROP INDEX IF EXISTS \1 CASCADE;/p' |