8 - PGBRANCH=REL_13_STABLE
9 - PGBRANCH=REL_12_STABLE
10 - PGBRANCH=REL_11_STABLE
11 - PGBRANCH=REL_10_STABLE
12 - PGBRANCH=REL9_6_STABLE
13 - PGBRANCH=REL9_5_STABLE
14 - PGBRANCH=REL9_4_STABLE
15 - PGBRANCH=REL9_3_STABLE
16 - PGBRANCH=REL9_2_STABLE
17 - PGBRANCH=REL9_1_STABLE
20 - sudo service postgresql stop
22 - PGHOME=${CURDIR}/${PGBRANCH}
23 - PGDATA=${PGHOME}/data
24 - PGSRC=${CURDIR}/postgres
25 - TRGMSRC=${PGSRC}/contrib/pg_trgm
26 - git clone https://github.com/postgres/postgres.git
28 - git checkout ${PGBRANCH}
29 - ./configure --prefix=${PGHOME} --enable-debug --enable-cassert
34 - export PATH=${PATH}:${PGHOME}/bin
35 - initdb -D ${PGDATA} --locale=C --encoding=UTF8
36 - pg_ctl -D ${PGDATA} -w start
40 - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config
41 - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config install
44 - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config installcheck
45 - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config installcheck-trgm
48 - if [ -f regression.diffs ]; then cat regression.diffs; fi
49 - pg_ctl -D ${PGDATA} stop