15 lines
286 B
Bash
Executable file
15 lines
286 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if test -z "$BIN"; then
|
|
echo "setup \$BIN please"
|
|
exit 1
|
|
fi
|
|
|
|
if test "$1" = "--help"; then
|
|
$BIN -h | grep '^Usage' -A1
|
|
$BIN -h | tail -n +11
|
|
fi
|
|
|
|
if test "$1" = "--version"; then
|
|
$BIN -h | grep ^Version | sed 's/(.*)//' | sed 's/Version/pg_filedump/'
|
|
fi
|