Move pg_test_fsync from contrib/ to src/bin/
authorPeter Eisentraut
Wed, 11 Mar 2015 02:33:24 +0000 (22:33 -0400)
committerPeter Eisentraut
Mon, 20 Apr 2015 02:20:49 +0000 (22:20 -0400)
Reviewed-by: Michael Paquier
12 files changed:
contrib/Makefile
contrib/pg_test_fsync/Makefile [deleted file]
doc/src/sgml/contrib.sgml
doc/src/sgml/filelist.sgml
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/pgtestfsync.sgml [moved from doc/src/sgml/pgtestfsync.sgml with 95% similarity]
doc/src/sgml/reference.sgml
src/bin/Makefile
src/bin/pg_test_fsync/.gitignore [moved from contrib/pg_test_fsync/.gitignore with 100% similarity]
src/bin/pg_test_fsync/Makefile [new file with mode: 0644]
src/bin/pg_test_fsync/pg_test_fsync.c [moved from contrib/pg_test_fsync/pg_test_fsync.c with 100% similarity]
src/tools/msvc/Mkvcbuild.pm

index cc60d680fca9c927e5b9d9aeebed2322da6eecf3..9ca1ed707a00d1f67463b518a772aa2ca85e8dac 100644 (file)
@@ -33,7 +33,6 @@ SUBDIRS = \
        pg_prewarm  \
        pg_standby  \
        pg_stat_statements \
-       pg_test_fsync   \
        pg_test_timing  \
        pg_trgm     \
        pgcrypto    \
diff --git a/contrib/pg_test_fsync/Makefile b/contrib/pg_test_fsync/Makefile
deleted file mode 100644 (file)
index 15afba7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# contrib/pg_test_fsync/Makefile
-
-PGFILEDESC = "pg_test_fsync - test various disk sync methods"
-PGAPPICON = win32
-
-PROGRAM  = pg_test_fsync
-OBJS = pg_test_fsync.o $(WIN32RES)
-
-ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-else
-subdir = contrib/pg_test_fsync
-top_builddir = ../..
-include $(top_builddir)/src/Makefile.global
-include $(top_srcdir)/contrib/contrib-global.mk
-endif
index adc21843db23b0df341f4e3b1f618004b91bd2cc..b25d18b344ad170980b6e0a0cd24923a6c42bc60 100644 (file)
@@ -202,7 +202,6 @@ pages.
   
 
  &pgstandby;
- &pgtestfsync;
  &pgtesttiming;
  &pgxlogdump;
  
index 2d7514c3ea17de45d5c14e4bff87be722bc2101b..5095e0fce2aaa88ce29ad239eec38c36afcb81b9 100644 (file)
 
 
 
-
 
 
 
index 211a3c42bd5d2d485b8291727ac2bb6f8ca4012e..e940153540ee6179a12af27466be1b27b0e022f8 100644 (file)
@@ -193,6 +193,7 @@ Complete list of usable sgml source files in this directory.
 
 
 
+
 
 
 
similarity index 95%
rename from doc/src/sgml/pgtestfsync.sgml
rename to doc/src/sgml/ref/pgtestfsync.sgml
index c4b4014b1a0a72a49d8824a8a269f5139d99e548..5dcabe4b77d8c2e939e3d8f980b0c77aae3d2746 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  
 
  
 
-  Author
-
-  
-   Bruce Momjian [email protected]
-  
-
  
   See Also
 
index fb18d94ea0974a37ab75e58e4019bae0ee645f11..666493cd64010fad06a5c6325ac28ec6758647f1 100644 (file)
    &pgCtl;
    &pgResetxlog;
    &pgRewind;
+   &pgtestfsync;
    &pgupgrade;
    &postgres;
    &postmaster;
index cc78798fba7c339b07066f676a0985297c1a8c82..06a0ab75b6b120fb56257c848b6a2b79f00ec4a0 100644 (file)
@@ -23,6 +23,7 @@ SUBDIRS = \
    pg_dump \
    pg_resetxlog \
    pg_rewind \
+   pg_test_fsync \
    pg_upgrade \
    pgbench \
    psql \
diff --git a/src/bin/pg_test_fsync/Makefile b/src/bin/pg_test_fsync/Makefile
new file mode 100644 (file)
index 0000000..90496df
--- /dev/null
@@ -0,0 +1,27 @@
+# src/bin/pg_test_fsync/Makefile
+
+PGFILEDESC = "pg_test_fsync - test various disk sync methods"
+PGAPPICON = win32
+
+subdir = src/bin/pg_test_fsync
+top_builddir = ../../..
+include $(top_builddir)/src/Makefile.global
+
+OBJS = pg_test_fsync.o $(WIN32RES)
+
+all: pg_test_fsync
+
+pg_test_fsync: $(OBJS) | submake-libpgport
+   $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
+
+install: all installdirs
+   $(INSTALL_PROGRAM) pg_test_fsync$(X) '$(DESTDIR)$(bindir)/pg_test_fsync$(X)'
+
+installdirs:
+   $(MKDIR_P) '$(DESTDIR)$(bindir)'
+
+uninstall:
+   rm -f '$(DESTDIR)$(bindir)/pg_test_fsync$(X)'
+
+clean distclean maintainer-clean:
+   rm -f pg_test_fsync$(X) $(OBJS)
index 986f3b3794c9799bbe6032e1782a9d9cddc6e4d8..5b86c805ae6ad29bba13cf0971b3b7001dbafa9f 100644 (file)
@@ -35,13 +35,13 @@ my @contrib_uselibpq =
 my @contrib_uselibpgport = (
    'oid2name',
    'pg_standby',
-   'pg_test_fsync', 'pg_test_timing',
+   'pg_test_timing',
    'pg_xlogdump',
    'vacuumlo');
 my @contrib_uselibpgcommon = (
    'oid2name',
    'pg_standby',
-   'pg_test_fsync', 'pg_test_timing',
+   'pg_test_timing',
    'pg_xlogdump',
    'vacuumlo');
 my $contrib_extralibs = undef;
@@ -55,8 +55,8 @@ my @contrib_excludes = ('pgcrypto', 'commit_ts', 'intagg', 'sepgsql');
 # Set of variables for frontend modules
 my $frontend_defines = { 'initdb' => 'FRONTEND' };
 my @frontend_uselibpq = ('pg_ctl', 'pg_upgrade', 'pgbench', 'psql');
-my @frontend_uselibpgport = ( 'pg_archivecleanup', 'pg_upgrade', 'pgbench' );
-my @frontend_uselibpgcommon = ( 'pg_archivecleanup', 'pg_upgrade', 'pgbench' );
+my @frontend_uselibpgport = ( 'pg_archivecleanup', 'pg_test_fsync', 'pg_upgrade', 'pgbench' );
+my @frontend_uselibpgcommon = ( 'pg_archivecleanup', 'pg_test_fsync', 'pg_upgrade', 'pgbench' );
 my $frontend_extralibs = {
    'initdb'     => ['ws2_32.lib'],
    'pg_restore' => ['ws2_32.lib'],