1 /*-------------------------------------------------------------------------
6 * Copyright (c) 1994, Regents of the University of California
10 * $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/pg_version.c,v 1.6 1996/11/12 06:47:00 bryanh Exp $
12 *-------------------------------------------------------------------------
17 #include <version.h> /* interface to SetPgVersion */
22 main(int argc, char **argv)
24 int retcode; /* our eventual return code */
25 char *reason; /* Reason that SetPgVersion failed, NULL if it didn't. */
28 fprintf(stderr, "pg_version: missing argument\n");
31 SetPgVersion(argv[1], &reason);
34 "pg_version is unable to create the PG_VERSION file. "
35 "SetPgVersion gave this reason: %s\n",