Skip to content

Commit 7fbb857

Browse files
author
itagaki.takahiro
committed
First import.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@2 182aca00-e38e-11de-a668-6fd11605f5ce
1 parent 007464a commit 7fbb857

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+9525
-0
lines changed

COPYRIGHT

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2008-2009, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
* Neither the name of the NIPPON TELEGRAPH AND TELEPHONE CORPORATION
13+
(NTT) nor the names of its contributors may be used to endorse or
14+
promote products derived from this software without specific prior
15+
written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Makefile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
PROGRAM = pg_rman
2+
SRCS = \
3+
backup.c \
4+
catalog.c \
5+
data.c \
6+
delete.c \
7+
dir.c \
8+
init.c \
9+
parray.c \
10+
pg_rman.c \
11+
restore.c \
12+
show.c \
13+
util.c \
14+
validate.c \
15+
xlog.c \
16+
pgsql_src/pg_ctl.c \
17+
pgsql_src/pg_crc.c \
18+
pgut/pgut.c \
19+
pgut/pgut-port.c
20+
OBJS = $(SRCS:.c=.o)
21+
# pg_crc.c and are copied from PostgreSQL source tree.
22+
23+
# XXX for debug, add -g and disable optimization
24+
PG_CPPFLAGS = -I$(libpq_srcdir)
25+
PG_LIBS = $(libpq_pgport)
26+
27+
REGRESS = option init show_validate backup_restore
28+
29+
ifdef USE_PGXS
30+
PG_CONFIG = pg_config
31+
PGXS := $(shell $(PG_CONFIG) --pgxs)
32+
include $(PGXS)
33+
else
34+
subdir = contrib/pg_rman
35+
top_builddir = ../..
36+
include $(top_builddir)/src/Makefile.global
37+
include $(top_srcdir)/contrib/contrib-global.mk
38+
endif
39+
40+
$(OBJS): pg_rman.h

0 commit comments

Comments
 (0)