mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 05:21:27 +03:00
The latter updated accordingly. Also add `dist' and `distcheck' targets to play with, but caveat packager. Updated backend/bootstrap and backend/parser makefile to make them marginally builddir aware and fix the usual set of things. Add rule to automatically remake config.h dependent on config.h.in and config.status. (Adopted from Autoconf manual and about every other package.) On a good day we should now have a complete and accurate set of dependencies throughout everything.
27 lines
946 B
Bash
Executable File
27 lines
946 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# release_prep: prepare the Postgres source tree for distribution
|
|
#
|
|
# This script should be run after checking out a fileset from the Postgres
|
|
# CVS repository, and just before creating a tarfile from the checked-out
|
|
# fileset. It does cleanup tasks to ensure that we have a good tarball.
|
|
#
|
|
# Run the script from the toplevel Postgres directory, ie, do
|
|
# cd pgsql
|
|
# src/tools/release_prep
|
|
#
|
|
# The script's tasks are:
|
|
# 1. Run configure to prepare usable Makefiles on the local system.
|
|
# 2. Generate distribution copies of some derived files such as gram.c.
|
|
# (We do this so that recipients of the distribution don't have to have
|
|
# tools that can create these files.)
|
|
# 3. "make distclean" to get rid of the configure outputs, as well as any
|
|
# other cruft that might be laying about.
|
|
|
|
# Select make to use --- default gmake, can be overridden by env var
|
|
: ${MAKE=gmake}
|
|
|
|
./configure && \
|
|
$MAKE distprep && \
|
|
$MAKE distclean
|