From: Marc G. Fournier Date: Tue, 30 Oct 2007 02:34:48 +0000 (+0000) Subject: simple script to pull together a very small (<500k) tar file that builds X-Git-Tag: REL8_3_BETA3~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b973530737805710e67730393000b3786d454292;p=postgresql simple script to pull together a very small (<500k) tar file that builds *just* libpq ... its not perfect, as it pulls in more files then is necessarily required to build, but as it is, it requires one simple patch to configure.in in order to work ... Tested on FreeBSD ... patch for configure.in hasn't been applied, but putting the script in place so that it doesn't get lost ... --- diff --git a/src/tools/make_libpq.sh b/src/tools/make_libpq.sh new file mode 100755 index 0000000000..b79ae5dcb0 --- /dev/null +++ b/src/tools/make_libpq.sh @@ -0,0 +1,34 @@ +#!/bin/sh +if [ -d /tmp/libpq ] +then + rm -rf /tmp/libpq +fi +mkdir /tmp/libpq +# +mkdir -p /tmp/libpq/src/interfaces +cp -rp src/interfaces/libpq /tmp/libpq/src/interfaces/libpq +# +mkdir -p /tmp/libpq/src/include +cp -rp src/include/pg_config.h.in src/include/port src/include/libpq src/include/mb /tmp/libpq/src/include +for i in `echo c.h postgres_ext.h postgres_fe.h pg_config_manual.h pg_trace.h port.h getaddrinfo.h` +do + cp src/include/${i} /tmp/libpq/src/include +done +# +mkdir -p /tmp/libpq/src/backend/port +cp -rp src/backend/port /tmp/libpq/src/backend +# +cp -rp src/template src/port src/makefiles /tmp/libpq/src +# +mkdir -p /tmp/libpq/src/backend/libpq +cp src/backend/libpq/ip.c src/backend/libpq/md5.c /tmp/libpq/src/backend/libpq +# +mkdir -p /tmp/libpq/src/backend/utils/mb +cp src/backend/utils/mb/encnames.c src/backend/utils/mb/wchar.c /tmp/libpq/src/backend/utils/mb +cp src/Makefile.global.in src/Makefile.shlib /tmp/libpq/src +cp aclocal.m4 configure.in configure GNUmakefile.in /tmp/libpq +cp -rp config /tmp/libpq +cd /tmp/libpq +find . -type d -name CVS -exec rm -rf {} \; +sed -i.bak 's/src\/backend\/access\/common\/heaptuple.c/src\/interfaces\/libpq\/fe-auth.c/' configure.in +autoconf