Project

General

Profile

1
#!/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 -e 's/^SET search_path =/&/p' \
10
-e 's/^CREATE INDEX ([^ ]+) .*$/DROP INDEX IF EXISTS \1 CASCADE;/p'
(35-35/64)