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

Commitd01c6cd

Browse files
committed
Merge branch 'PGPRO_sections' ofhttps://github.com/postgrespro/pgwininstall into PGPRO_sections
2 parents21eb9d4 +14d0c90 commitd01c6cd

File tree

10 files changed

+146
-1
lines changed

10 files changed

+146
-1
lines changed

‎build/helpers/genlists.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/usr/bin/env python
2+
# -*- encoding: utf-8 -*-
3+
"""
4+
This script reads list of glob patterns from files, specified in the
5+
command-line and generates lists of files for each pattern
6+
"""
7+
importsys,fnmatch,os,os.path
8+
9+
filelist_name=sys.argv.pop(1)
10+
ifos.path.isdir(filelist_name):
11+
# Generate filelist ourselves
12+
pwd=os.getcwd()
13+
os.chdir(filelist_name)
14+
filelist=set()
15+
fordirname,subdirlist,filesinos.walk("."):
16+
dirname=dirname.replace("\\","/")
17+
forfinfiles:
18+
filelist.add(dirname+"/"+f)
19+
os.chdir(pwd)
20+
else:
21+
withopen(filelist_name,"r")asf:
22+
filelist=set(map(lambdax:x.strip(),f.readlines()))
23+
24+
formoduleinsys.argv[1:]:
25+
modname=module[:module.find(".")]
26+
print>>sys.stderr,"Processing module ",modname
27+
withopen(module,"r")asf:
28+
patterns=map(lambdax:x.strip(),f.readlines())
29+
forpinpatterns:
30+
ifp.startswith("./bin/")andnotp.endswith(".dll"):
31+
patterns.append("./share/locale/*/LC_MESSAGES/"+p[6:p.rfind(".")]+"*.mo")
32+
found=set()
33+
forpinpatterns:
34+
ifp.startswith("#"):
35+
continue
36+
forfinfilelist:
37+
iffnmatch.fnmatch(f,p):
38+
found.add(f)
39+
filelist-=found
40+
withopen(modname+"_list.nsi","w")asout:
41+
curdir=""
42+
forfinsorted(found):
43+
filedir=os.path.dirname(f)
44+
iffiledir!=curdir:
45+
print>>out,"SetOutDir ${INSTDIR}"+filedir[1:]
46+
curdir=filedir
47+
print>>out,"File ${PG_INS_SOURCE_DIR}"+f[1:]
48+
49+
# When all module files are processed:
50+
iflen(filelist):
51+
print>>sys.stderr,"Following unprocessed files found:\n",", ".join(sorted(filelist))
52+
sys.exit(1)
53+
54+
55+
56+
57+

‎build/helpers/postgres_nsis_installer.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ IF "%ARCH%" == "X64" (
9797

9898

9999
CD /D%NSIS_RES_DIR%||GOTO :ERROR
100+
rem Genarate file lists
101+
%PYTHON64_PATH%/python%ROOT%/build/helpers/genlists.py%INSTDIR% client.files devel.files plperl.files plpython2.files plpython3.files unneeded.files server.files
102+
103+
rem generate installer itself
100104
makensis postgresql.nsi||GOTO :ERROR
101105

102106
GOTO :DONE

‎nsis/client.files

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
./bin/*.dll
2+
./bin/clusterdb.*
3+
./bin/createdb.*
4+
./bin/createuser.*
5+
./bin/dropdb.*
6+
./bin/dropuser.*
7+
./bin/pg_basebackup.*
8+
./bin/pgbench.*
9+
./bin/pg_dump.*
10+
./bin/pg_dumpall.*
11+
./bin/pg_isready.*
12+
./bin/pg_receivewal.*
13+
./bin/pg_recvlogical.*
14+
./bin/pg_restore.*
15+
./bin/psql.*
16+
./bin/reindexdb.*
17+
./bin/vacuumdb.*
18+
./bin/oid2name.*
19+
./bin/vacuumlo.*
20+
./bin/less.*
21+
./bin/lesskey.*
22+
./bin/openssl.*
23+
./share/psqlrc.sample
24+
./doc/postgresql-en.chm
25+
./doc/postgresql-ru.chm
26+
./share/locale/*/libpq*.mo
27+
./share/locale/*/pgscripts*.mo

‎nsis/devel.files

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
./include/*
2+
./lib/*.lib
3+
./bin/pg_config.*
4+
./bin/ecpg.*
5+
./symbols/*.pdb

‎nsis/plperl.files

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
./lib/*plperl.dll
2+
./share/extension/*plperl.*
3+
./share/locale/*/plperl-*.mo

‎nsis/plpython2.files

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
./lib/*plpython2.dll
2+
./share/extension/*plpython2u*
3+
./share/extension/*plpythonu*
4+
./share/locale/*/LC_MESSAGES/plpython-*.mo

‎nsis/plpython3.files

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# For future plpython3 builds.
2+
# This file should be processed before server.files and filelist
3+
# generated, but later ignored by installer. Thus plpython3 related
4+
# files wouldn't be included into installation
5+
./lib/*plpython3.dll
6+
./share/extension/*plpython3u*
7+

‎nsis/postgresql.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2127,4 +2127,4 @@ Function .onSelChange
21272127
${endif}
21282128

21292129
${endif}
2130-
FunctionEnd
2130+
FunctionEnd

‎nsis/server.files

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file contains some quite broad catch-all wildcard patterns, so
2+
# it should be last of all modules
3+
./bin/initdb.*
4+
./bin/pg_archivecleanup.*
5+
./bin/pg_controldata.*
6+
./bin/pg_ctl.*
7+
./bin/pg_resetwal.*
8+
./bin/pg_rewind.*
9+
./bin/pg_test_fsync.*
10+
./bin/pg_test_timing.*
11+
./bin/pg_upgrade.*
12+
./bin/pg_waldump.*
13+
./bin/postgres.*
14+
./bin/postmaster.*
15+
./bin/pg_standby.*
16+
./bin/zic.*
17+
./doc/extension/*.example
18+
./doc/buildinfo.txt
19+
./lib/*.dll
20+
./share/extension/*
21+
./share/*.sample
22+
./share/*.sql
23+
./share/postgres.bki
24+
./share/*.description
25+
./share/*.shdescription
26+
./share/sql_features.txt
27+
./share/extension/plpgsql*
28+
./share/locale/*/LC_MESSAGES/plpgsql*
29+
./share/timezonesets/*
30+
./share/timezone/*
31+
./share/tsearch_data/*
32+

‎nsis/unneeded.files

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
./bin/pg_regress*.exe
2+
./bin/pg_isolation_regress.exe
3+
./bin/isolationtester.exe
4+
./doc/contrib/README*
5+
./doc/extension/README*
6+
./share/locale/*/LC_MESSAGES/pltcl-*.mo

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp