Project

General

Profile

« Previous | Next » 

Revision 5672

pg_dump_vegbien: Added opts env var to allow specifying options to a Makefile command, which does not take positional arguments

View differences:

pg_dump_vegbien
4 4
selfDir="$(dirname -- "$0")"
5 5

  
6 6
if ! test "$#" -eq 1; then
7
    echo "Usage: env [data=1] [plain=1] [owners=1] $0 {<schema>|all} [opts...] \
8
>out"|fold -s >&2
7
    echo "Usage: env [data=1] [plain=1] [owners=1] [opts=...] $0 \
8
{<schema>|all} [opts...] >out"|fold -s >&2
9 9
    exit 2
10 10
fi
11 11

  
......
21 21
else set -- "$@" --schema-only
22 22
fi
23 23
test -n "$owners" || set -- "$@" --no-owner --no-privileges
24
set -- "$@"
24
set -- "$@" $opts
25 25

  
26 26
set -x
27 27
exec "$selfDir/postgres_vegbien" pg_dump "$@"

Also available in: Unified diff