Tue Jan 8 12:43:26 PST 2008
- Previous message: [Slony1-commit] slony1-engine/src/slonik Makefile slonik.c
- Next message: [Slony1-commit] slony1-engine RELEASE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/slonik In directory main.slony.info:/tmp/cvs-serv25617 Modified Files: Makefile slonik.c Log Message: Change slonik build to query Postgres for the share directory at runtime Per Dave Page Index: slonik.c =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/src/slonik/slonik.c,v retrieving revision 1.83 retrieving revision 1.84 diff -C2 -d -r1.83 -r1.84 *** slonik.c 11 Dec 2007 19:30:30 -0000 1.83 --- slonik.c 8 Jan 2008 20:43:24 -0000 1.84 *************** *** 43,49 **** int current_try_level; - #ifdef WIN32 static char myfull_path[MAXPGPATH]; - #endif static char share_path[MAXPGPATH]; --- 43,47 ---- *************** *** 105,111 **** if (parser_errors) usage(); ! #ifndef WIN32 ! strcpy(share_path, PGSHARE); ! #else /* * We need to find a share directory like PostgreSQL. --- 103,107 ---- if (parser_errors) usage(); ! /* * We need to find a share directory like PostgreSQL. *************** *** 113,118 **** if (find_my_exec(argv[0],myfull_path) < 0) { ! printf("full path was unacquirable. '%s'\n", argv[0]); ! return -1; } else --- 109,113 ---- if (find_my_exec(argv[0],myfull_path) < 0) { ! strcpy(share_path, PGSHARE); } else *************** *** 120,124 **** get_share_path(myfull_path, share_path); } ! #endif if (optind < argc) { --- 115,119 ---- get_share_path(myfull_path, share_path); } ! if (optind < argc) { Index: Makefile =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/src/slonik/Makefile,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Makefile 2 Jan 2007 23:34:35 -0000 1.25 --- Makefile 8 Jan 2008 20:43:24 -0000 1.26 *************** *** 18,21 **** --- 18,22 ---- CFLAGS += -I$(slony_top_builddir) -DPGSHARE="\"$(pgsharedir)\"" + LDFLAGS += -lpgport PROG = slonik *************** *** 23,31 **** ifeq ($(PORTNAME), win) PROG = slonik.exe - LDFLAG = $(LDFLAG) -lpgport endif ifeq ($(PORTNAME), win32) PROG = slonik.exe - LDFLAG = $(LDFLAG) -lpgport endif --- 24,30 ----
- Previous message: [Slony1-commit] slony1-engine/src/slonik Makefile slonik.c
- Next message: [Slony1-commit] slony1-engine RELEASE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list