Project

General

Profile

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
sed -n 's/^CREATE INDEX ([^ ]+) .*$/DROP INDEX IF EXISTS \1 CASCADE;/p'