~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to contrib/mac/dropoui

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Utility to remove manufacturer's oui table
 
3
 
 
4
args=
 
5
 
 
6
while [ $# -gt 0 ]
 
7
do
 
8
    case "$1" in
 
9
    --help)
 
10
        echo "Usage: $0 dbname"
 
11
        exit
 
12
        ;;
 
13
    *)
 
14
        args="$args $1"
 
15
        ;;
 
16
    esac
 
17
    shift
 
18
done
 
19
 
 
20
psql $args <<EOF
 
21
drop function manuf(macaddr);
 
22
drop table macoui;
 
23
EOF
 
24
 
 
25
exit