Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc96add9

Browse files
committed
Script for preparing derived files during tarball construction.
1 parent0aa2aed commitc96add9

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

‎src/tools/release_prep

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/bin/sh
2+
#
3+
# release_prep: prepare the Postgres source tree for distribution
4+
#
5+
# This script should be run after checking out a fileset from the Postgres
6+
# CVS repository, and just before creating a tarfile from the checked-out
7+
# fileset. It does cleanup tasks to ensure that we have a good tarball.
8+
#
9+
# Run the script from the toplevel Postgres directory, ie, do
10+
#cd pgsql
11+
#src/tools/release_prep
12+
# (Right now, the cleanup tasks are all in the src subdirectory, but we
13+
# might want to add housekeeping in doc too?)
14+
#
15+
# The script's tasks are:
16+
# 1. Run configure to prepare usable Makefiles on the local system.
17+
# 2. Generate distribution copies of some derived files such as gram.c.
18+
# (We do this so that recipients of the distribution don't have to have
19+
# tools that can create these files.)
20+
# Note we force these files to be recreated, to ensure they will have
21+
# newer timestamps than their master files.
22+
# 3. "make distclean" to get rid of the configure outputs, as well as any
23+
# other cruft that might be laying about.
24+
25+
# Select make to use --- default gmake, can be overridden by env var
26+
MAKE=${MAKE:-gmake}
27+
28+
cd src
29+
30+
# Configure ... should we run autoconf here???
31+
32+
./configure
33+
34+
# Generate parser's gram and lex files.
35+
36+
cd backend/parser
37+
38+
rm -f gram.c parse.h scan.c
39+
40+
$MAKE gram.c parse.h scan.c
41+
42+
cd ../..
43+
44+
# Generate ecpg preprocessor's gram and lex files.
45+
46+
cd interfaces/ecpg/preproc
47+
48+
rm -f preproc.c preproc.h pgc.c
49+
50+
$MAKE preproc.c preproc.h pgc.c
51+
52+
cd ../../..
53+
54+
# Clean up
55+
56+
$MAKE distclean
57+
58+
exit 0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp