head	1.148;
access;
symbols
	REL9_0_0:1.148
	REL9_1_ALPHA1:1.148
	REL9_0_RC1:1.148
	REL9_0_BETA4:1.148
	REL9_0_STABLE:1.148.0.2
	REL9_0_BETA3:1.148
	REL9_0_BETA2:1.143
	REL7_4_29:1.59.2.4
	REL8_0_25:1.75.4.1
	REL8_1_21:1.75.6.1
	REL8_2_17:1.81.2.4
	REL8_3_11:1.105.2.1
	REL8_4_4:1.117
	REL9_0_BETA1:1.140
	REL9_0_ALPHA5_BRANCH:1.139.0.2
	REL9_0_ALPHA5:1.139
	REL7_4_28:1.59.2.4
	REL8_0_24:1.75.4.1
	REL8_1_20:1.75.6.1
	REL8_2_16:1.81.2.4
	REL8_3_10:1.105.2.1
	REL8_4_3:1.117
	REL9_0_ALPHA4:1.138
	REL9_0_ALPHA4_BRANCH:1.138.0.2
	REL8_5_ALPHA3:1.133
	REL8_5_ALPHA3_BRANCH:1.133.0.4
	REL7_4_27:1.59.2.4
	REL8_0_23:1.75.4.1
	REL8_1_19:1.75.6.1
	REL8_2_15:1.81.2.4
	REL8_3_9:1.105.2.1
	REL8_4_2:1.117
	REL8_5_ALPHA2:1.133
	REL8_5_ALPHA2_BRANCH:1.133.0.2
	REL7_4_26:1.59.2.4
	REL8_0_22:1.75.4.1
	REL8_1_18:1.75.6.1
	REL8_2_14:1.81.2.4
	REL8_3_8:1.105.2.1
	REL8_4_1:1.117
	REL8_5_ALPHA1:1.127
	REL8_5_ALPHA1_BRANCH:1.127.0.2
	REL8_4_STABLE:1.117.0.2
	REL8_4_0:1.117
	REL8_4_RC2:1.116
	REL8_4_RC1:1.115
	REL8_4_BETA2:1.115
	REL8_4_BETA1:1.114
	REL7_4_25:1.59.2.3
	REL8_0_21:1.75
	REL8_1_17:1.75
	REL8_2_13:1.81.2.3
	REL8_3_7:1.105
	REL7_4_24:1.59.2.3
	REL8_0_20:1.75
	REL8_1_16:1.75
	REL8_2_12:1.81.2.3
	REL8_3_6:1.105
	REL7_4_23:1.59.2.3
	REL8_0_19:1.75
	REL8_1_15:1.75
	REL8_2_11:1.81.2.3
	REL8_3_5:1.105
	REL7_4_22:1.59.2.3
	REL8_0_18:1.75
	REL8_1_14:1.75
	REL8_2_10:1.81.2.3
	REL8_3_4:1.105
	REL7_4_21:1.59.2.3
	REL8_0_17:1.75
	REL8_1_13:1.75
	REL8_2_9:1.81.2.3
	REL8_3_3:1.105
	REL7_4_20:1.59.2.3
	REL8_0_16:1.75
	REL8_1_12:1.75
	REL8_2_8:1.81.2.3
	REL8_3_2:1.105
	REL8_2_7:1.81.2.3
	REL8_3_1:1.105
	REL8_3_STABLE:1.105.0.2
	REL8_3_0:1.105
	REL8_3_RC2:1.105
	REL7_3_21:1.52.2.3
	REL7_4_19:1.59.2.3
	REL8_0_15:1.75
	REL8_1_11:1.75
	REL8_2_6:1.81.2.3
	REL8_3_RC1:1.105
	REL8_3_BETA4:1.101
	REL8_3_BETA3:1.101
	REL8_3_BETA2:1.101
	REL8_3_BETA1:1.99
	REL7_3_20:1.52.2.3
	REL7_4_18:1.59.2.3
	REL8_0_14:1.75
	REL8_1_10:1.75
	REL8_2_5:1.81.2.3
	REL7_3_19:1.52.2.3
	REL7_4_17:1.59.2.3
	REL8_0_13:1.75
	REL8_1_9:1.75
	REL8_2_4:1.81.2.2
	REL8_0_12:1.75
	REL8_1_8:1.75
	REL8_2_3:1.81.2.2
	REL7_3_18:1.52.2.3
	REL7_4_16:1.59.2.3
	REL8_0_11:1.75
	REL8_1_7:1.75
	REL8_2_2:1.81.2.2
	REL8_0_10:1.75
	REL8_1_6:1.75
	REL8_2_1:1.81.2.2
	REL7_4_15:1.59.2.3
	REL7_3_17:1.52.2.3
	REL8_2_STABLE:1.81.0.2
	REL8_2_0:1.81
	REL8_2_RC1:1.80
	REL8_2_BETA3:1.80
	REL8_2_BETA2:1.80
	REL8_1_5:1.75
	REL8_0_9:1.75
	REL7_4_14:1.59.2.3
	REL7_3_16:1.52.2.3
	REL8_2_BETA1:1.76
	REL7_3_15:1.52.2.3
	REL7_4_13:1.59.2.3
	REL8_0_8:1.75
	REL8_1_4:1.75
	REL7_3_14:1.52.2.3
	REL7_4_12:1.59.2.3
	REL8_0_7:1.75
	REL8_1_3:1.75
	REL7_3_13:1.52.2.3
	REL7_4_11:1.59.2.3
	REL8_0_6:1.75
	REL8_1_2:1.75
	REL7_3_12:1.52.2.3
	REL7_4_10:1.59.2.3
	REL8_0_5:1.75
	REL8_1_1:1.75
	REL8_1_STABLE:1.75.0.6
	REL8_1_0:1.75
	REL8_1_0RC1:1.75
	REL8_1_0BETA4:1.75
	REL8_1_0BETA3:1.75
	REL7_3_11:1.52.2.3
	REL7_4_9:1.59.2.3
	REL8_0_4:1.75
	REL8_1_0BETA2:1.75
	REL8_1_0BETA1:1.75
	REL7_2_8:1.49.2.1
	REL7_3_10:1.52.2.3
	REL7_4_8:1.59.2.3
	REL8_0_3:1.75
	REL8_0_2:1.75
	REL7_2_7:1.49.2.1
	REL7_3_9:1.52.2.3
	REL7_4_7:1.59.2.3
	REL8_0_1:1.75
	REL8_0_STABLE:1.75.0.4
	REL8_0_0:1.75.0.2
	REL8_0_0RC5:1.75
	REL8_0_0RC4:1.75
	REL8_0_0RC3:1.74
	REL8_0_0RC2:1.74
	REL8_0_0RC1:1.74
	REL8_0_0BETA5:1.72
	REL8_0_0BETA4:1.72
	REL7_4_6:1.59.2.3
	REL7_3_8:1.52.2.3
	REL7_2_6:1.49
	REL8_0_0BETA3:1.72
	REL8_0_0BETA2:1.72
	REL7_2_5:1.49
	REL7_4_5:1.59.2.3
	REL7_3_7:1.52.2.3
	REL7_4_4:1.59.2.3
	REL8_0_0BETA1:1.72
	REL7_4_3:1.59.2.3
	REL7_4_2:1.59.2.1
	REL7_3_6:1.52.2.3
	REL7_4_1:1.59
	REL7_3_5:1.52.2.2
	REL7_4:1.59
	REL7_4_RC2:1.59
	REL7_4_STABLE:1.59.0.2
	REL7_4_RC1:1.59
	REL7_4_BETA5:1.59
	REL7_4_BETA4:1.59
	REL7_4_BETA3:1.59
	REL7_4_BETA2:1.57
	WIN32_DEV:1.57.0.2
	REL7_4_BETA1:1.57
	REL7_3_4:1.52.2.2
	REL7_3_2:1.52.2.2
	REL7_2_4:1.49
	REL7_3_STABLE:1.52.0.2
	REL7_2_3:1.49
	REL7_2_STABLE:1.49.0.2
	REL7_2:1.49
	REL7_2_RC2:1.48
	REL7_2_RC1:1.48
	REL7_2_BETA5:1.48
	REL7_2_BETA4:1.47
	REL7_2_BETA3:1.45
	REL7_2_BETA2:1.42
	REL7_2_BETA1:1.42
	REL7_1_2:1.36
	REL7_1_STABLE:1.36.0.2
	REL7_1_BETA:1.26
	REL7_1_BETA3:1.28
	REL7_1_BETA2:1.28
	REL7_1:1.35
	REL7_0_PATCHES:1.14.0.2
	REL7_0:1.14
	REL6_5_PATCHES:1.8.0.2
	REL6_5:1.8
	REL6_4:1.7.0.2
	release-6-3:1.2;
locks; strict;
comment	@# @;


1.148
date	2010.06.12.21.40.31;	author tgl;	state Exp;
branches;
next	1.147;

1.147
date	2010.06.12.17.17.25;	author momjian;	state Exp;
branches;
next	1.146;

1.146
date	2010.06.12.15.58.38;	author momjian;	state Exp;
branches;
next	1.145;

1.145
date	2010.06.12.15.42.44;	author momjian;	state Exp;
branches;
next	1.144;

1.144
date	2010.06.12.09.55.12;	author petere;	state Exp;
branches;
next	1.143;

1.143
date	2010.05.13.11.49.47;	author petere;	state Exp;
branches;
next	1.142;

1.142
date	2010.05.01.21.31.17;	author tgl;	state Exp;
branches;
next	1.141;

1.141
date	2010.05.01.18.15.07;	author tgl;	state Exp;
branches;
next	1.140;

1.140
date	2010.04.02.14.02.49;	author petere;	state Exp;
branches;
next	1.139;

1.139
date	2010.03.30.00.10.46;	author petere;	state Exp;
branches;
next	1.138;

1.138
date	2010.02.05.19.31.18;	author momjian;	state Exp;
branches;
next	1.137;

1.137
date	2010.02.05.19.28.39;	author momjian;	state Exp;
branches;
next	1.136;

1.136
date	2010.02.05.14.51.50;	author momjian;	state Exp;
branches;
next	1.135;

1.135
date	2010.01.06.19.07.05;	author tgl;	state Exp;
branches;
next	1.134;

1.134
date	2009.12.30.13.48.52;	author petere;	state Exp;
branches;
next	1.133;

1.133
date	2009.10.06.20.00.44;	author petere;	state Exp;
branches;
next	1.132;

1.132
date	2009.10.06.00.54.26;	author alvherre;	state Exp;
branches;
next	1.131;

1.131
date	2009.10.05.23.58.49;	author alvherre;	state Exp;
branches;
next	1.130;

1.130
date	2009.09.14.13.23.48;	author petere;	state Exp;
branches;
next	1.129;

1.129
date	2009.08.28.20.26.18;	author petere;	state Exp;
branches;
next	1.128;

1.128
date	2009.08.26.22.24.42;	author petere;	state Exp;
branches;
next	1.127;

1.127
date	2009.08.17.21.29.30;	author petere;	state Exp;
branches;
next	1.126;

1.126
date	2009.08.15.01.56.35;	author tgl;	state Exp;
branches;
next	1.125;

1.125
date	2009.08.11.22.21.51;	author petere;	state Exp;
branches;
next	1.124;

1.124
date	2009.08.11.21.53.06;	author petere;	state Exp;
branches;
next	1.123;

1.123
date	2009.08.11.20.16.03;	author alvherre;	state Exp;
branches;
next	1.122;

1.122
date	2009.08.09.22.47.59;	author petere;	state Exp;
branches;
next	1.121;

1.121
date	2009.08.05.19.31.50;	author alvherre;	state Exp;
branches;
next	1.120;

1.120
date	2009.08.04.22.04.37;	author petere;	state Exp;
branches;
next	1.119;

1.119
date	2009.07.20.18.34.58;	author petere;	state Exp;
branches;
next	1.118;

1.118
date	2009.07.14.22.16.38;	author petere;	state Exp;
branches;
next	1.117;

1.117
date	2009.06.25.21.15.38;	author petere;	state Exp;
branches;
next	1.116;

1.116
date	2009.06.19.19.14.25;	author petere;	state Exp;
branches;
next	1.115;

1.115
date	2009.05.02.20.17.19;	author tgl;	state Exp;
branches;
next	1.114;

1.114
date	2008.12.11.07.34.07;	author petere;	state Exp;
branches;
next	1.113;

1.113
date	2008.11.26.11.26.54;	author petere;	state Exp;
branches;
next	1.112;

1.112
date	2008.11.14.10.22.45;	author petere;	state Exp;
branches;
next	1.111;

1.111
date	2008.11.12.16.01.51;	author petere;	state Exp;
branches;
next	1.110;

1.110
date	2008.11.04.14.58.22;	author petere;	state Exp;
branches;
next	1.109;

1.109
date	2008.10.31.14.35.30;	author petere;	state Exp;
branches;
next	1.108;

1.108
date	2008.10.04.02.19.08;	author tgl;	state Exp;
branches;
next	1.107;

1.107
date	2008.08.25.15.34.05;	author alvherre;	state Exp;
branches;
next	1.106;

1.106
date	2008.06.10.00.19.32;	author alvherre;	state Exp;
branches;
next	1.105;

1.105
date	2007.12.15.10.28.21;	author momjian;	state Exp;
branches
	1.105.2.1;
next	1.104;

1.104
date	2007.12.14.14.11.02;	author petere;	state Exp;
branches;
next	1.103;

1.103
date	2007.12.14.13.20.30;	author momjian;	state Exp;
branches;
next	1.102;

1.102
date	2007.12.05.10.06.08;	author petere;	state Exp;
branches;
next	1.101;

1.101
date	2007.10.07.00.32.11;	author alvherre;	state Exp;
branches;
next	1.100;

1.100
date	2007.10.07.00.23.21;	author alvherre;	state Exp;
branches;
next	1.99;

1.99
date	2007.08.31.16.41.52;	author momjian;	state Exp;
branches;
next	1.98;

1.98
date	2007.08.31.02.03.02;	author momjian;	state Exp;
branches;
next	1.97;

1.97
date	2007.05.18.15.55.03;	author petere;	state Exp;
branches;
next	1.96;

1.96
date	2007.02.09.20.40.13;	author neilc;	state Exp;
branches;
next	1.95;

1.95
date	2007.02.09.15.55.57;	author petere;	state Exp;
branches;
next	1.94;

1.94
date	2007.01.27.22.44.32;	author momjian;	state Exp;
branches;
next	1.93;

1.93
date	2007.01.26.23.51.39;	author momjian;	state Exp;
branches;
next	1.92;

1.92
date	2007.01.26.22.23.49;	author momjian;	state Exp;
branches;
next	1.91;

1.91
date	2007.01.11.00.02.39;	author momjian;	state Exp;
branches;
next	1.90;

1.90
date	2007.01.10.19.06.04;	author momjian;	state Exp;
branches;
next	1.89;

1.89
date	2007.01.10.01.57.15;	author momjian;	state Exp;
branches;
next	1.88;

1.88
date	2007.01.09.22.19.36;	author momjian;	state Exp;
branches;
next	1.87;

1.87
date	2007.01.07.08.49.31;	author petere;	state Exp;
branches;
next	1.86;

1.86
date	2006.12.15.16.50.07;	author momjian;	state Exp;
branches;
next	1.85;

1.85
date	2006.12.15.01.20.59;	author momjian;	state Exp;
branches;
next	1.84;

1.84
date	2006.12.10.20.46.03;	author petere;	state Exp;
branches;
next	1.83;

1.83
date	2006.12.10.16.01.06;	author petere;	state Exp;
branches;
next	1.82;

1.82
date	2006.12.10.01.53.15;	author petere;	state Exp;
branches;
next	1.81;

1.81
date	2006.12.02.01.26.19;	author petere;	state Exp;
branches
	1.81.2.1;
next	1.80;

1.80
date	2006.10.07.23.48.52;	author momjian;	state Exp;
branches;
next	1.79;

1.79
date	2006.10.07.23.28.04;	author momjian;	state Exp;
branches;
next	1.78;

1.78
date	2006.10.05.02.04.32;	author momjian;	state Exp;
branches;
next	1.77;

1.77
date	2006.10.03.21.13.17;	author momjian;	state Exp;
branches;
next	1.76;

1.76
date	2006.04.06.18.54.36;	author petere;	state Exp;
branches;
next	1.75;

1.75
date	2005.01.04.21.03.30;	author petere;	state Exp;
branches
	1.75.4.1
	1.75.6.1;
next	1.74;

1.74
date	2004.11.23.21.41.24;	author petere;	state Exp;
branches;
next	1.73;

1.73
date	2004.11.23.16.27.59;	author petere;	state Exp;
branches;
next	1.72;

1.72
date	2004.03.09.20.10.10;	author momjian;	state Exp;
branches;
next	1.71;

1.71
date	2004.03.09.20.08.10;	author momjian;	state Exp;
branches;
next	1.70;

1.70
date	2004.03.08.23.59.23;	author momjian;	state Exp;
branches;
next	1.69;

1.69
date	2004.03.06.02.52.46;	author momjian;	state Exp;
branches;
next	1.68;

1.68
date	2004.03.05.19.50.55;	author momjian;	state Exp;
branches;
next	1.67;

1.67
date	2004.03.05.19.48.03;	author momjian;	state Exp;
branches;
next	1.66;

1.66
date	2004.03.02.00.03.02;	author tgl;	state Exp;
branches;
next	1.65;

1.65
date	2004.03.01.16.08.58;	author neilc;	state Exp;
branches;
next	1.64;

1.64
date	2004.01.15.23.51.32;	author petere;	state Exp;
branches;
next	1.63;

1.63
date	2004.01.13.18.45.19;	author petere;	state Exp;
branches;
next	1.62;

1.62
date	2003.12.15.22.24.59;	author momjian;	state Exp;
branches;
next	1.61;

1.61
date	2003.12.11.22.10.51;	author petere;	state Exp;
branches;
next	1.60;

1.60
date	2003.11.29.19.51.36;	author pgsql;	state Exp;
branches;
next	1.59;

1.59
date	2003.08.31.17.28.39;	author petere;	state Exp;
branches
	1.59.2.1;
next	1.58;

1.58
date	2003.08.27.22.58.54;	author petere;	state Exp;
branches;
next	1.57;

1.57
date	2003.04.10.01.22.44;	author petere;	state Exp;
branches
	1.57.2.1;
next	1.56;

1.56
date	2003.03.25.16.15.35;	author petere;	state Exp;
branches;
next	1.55;

1.55
date	2003.01.14.23.19.34;	author petere;	state Exp;
branches;
next	1.54;

1.54
date	2002.11.26.19.22.16;	author momjian;	state Exp;
branches;
next	1.53;

1.53
date	2002.11.11.20.06.00;	author petere;	state Exp;
branches;
next	1.52;

1.52
date	2002.10.12.16.34.28;	author petere;	state Exp;
branches
	1.52.2.1;
next	1.51;

1.51
date	2002.08.05.19.43.30;	author petere;	state Exp;
branches;
next	1.50;

1.50
date	2002.04.14.17.23.20;	author petere;	state Exp;
branches;
next	1.49;

1.49
date	2002.01.30.21.54.17;	author petere;	state Exp;
branches
	1.49.2.1;
next	1.48;

1.48
date	2001.12.21.03.53.04;	author thomas;	state Exp;
branches;
next	1.47;

1.47
date	2001.12.10.13.07.16;	author petere;	state Exp;
branches;
next	1.46;

1.46
date	2001.12.08.03.24.21;	author thomas;	state Exp;
branches;
next	1.45;

1.45
date	2001.11.18.20.35.02;	author petere;	state Exp;
branches;
next	1.44;

1.44
date	2001.11.16.16.29.56;	author petere;	state Exp;
branches;
next	1.43;

1.43
date	2001.11.08.23.46.29;	author petere;	state Exp;
branches;
next	1.42;

1.42
date	2001.10.09.18.45.59;	author petere;	state Exp;
branches;
next	1.41;

1.41
date	2001.10.04.22.25.48;	author petere;	state Exp;
branches;
next	1.40;

1.40
date	2001.09.21.18.37.05;	author petere;	state Exp;
branches;
next	1.39;

1.39
date	2001.09.18.12.08.26;	author petere;	state Exp;
branches;
next	1.38;

1.38
date	2001.08.29.19.14.39;	author petere;	state Exp;
branches;
next	1.37;

1.37
date	2001.05.12.22.51.34;	author petere;	state Exp;
branches;
next	1.36;

1.36
date	2001.04.20.15.52.33;	author thomas;	state Exp;
branches;
next	1.35;

1.35
date	2001.03.25.08.32.24;	author petere;	state Exp;
branches;
next	1.34;

1.34
date	2001.03.10.16.05.35;	author petere;	state Exp;
branches;
next	1.33;

1.33
date	2001.03.06.20.41.06;	author petere;	state Exp;
branches;
next	1.32;

1.32
date	2001.02.13.21.51.17;	author petere;	state Exp;
branches;
next	1.31;

1.31
date	2001.02.13.21.27.05;	author petere;	state Exp;
branches;
next	1.30;

1.30
date	2001.02.04.12.23.11;	author petere;	state Exp;
branches;
next	1.29;

1.29
date	2001.02.03.19.03.26;	author petere;	state Exp;
branches;
next	1.28;

1.28
date	2001.01.06.16.54.16;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2000.12.14.22.30.56;	author petere;	state Exp;
branches;
next	1.26;

1.26
date	2000.11.24.17.44.21;	author petere;	state Exp;
branches;
next	1.25;

1.25
date	2000.11.05.21.04.06;	author petere;	state Exp;
branches;
next	1.24;

1.24
date	2000.10.17.15.26.39;	author petere;	state Exp;
branches;
next	1.23;

1.23
date	2000.10.10.22.01.50;	author momjian;	state Exp;
branches;
next	1.22;

1.22
date	2000.10.05.19.48.16;	author momjian;	state Exp;
branches;
next	1.21;

1.21
date	2000.10.05.16.57.23;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2000.09.12.05.36.06;	author thomas;	state Exp;
branches;
next	1.19;

1.19
date	2000.08.31.16.09.20;	author petere;	state Exp;
branches;
next	1.18;

1.18
date	2000.08.26.13.08.14;	author petere;	state Exp;
branches;
next	1.17;

1.17
date	2000.07.21.00.44.11;	author petere;	state Exp;
branches;
next	1.16;

1.16
date	2000.07.16.14.50.38;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2000.06.18.21.24.51;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2000.05.02.20.01.51;	author thomas;	state Exp;
branches;
next	1.13;

1.13
date	2000.01.14.22.11.31;	author petere;	state Exp;
branches;
next	1.12;

1.12
date	99.12.05.20.21.59;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	99.12.04.04.53.14;	author momjian;	state Exp;
branches;
next	1.10;

1.10
date	99.08.08.04.18.29;	author thomas;	state Exp;
branches;
next	1.9;

1.9
date	99.08.06.13.46.17;	author thomas;	state Exp;
branches;
next	1.8;

1.8
date	99.07.06.17.19.41;	author thomas;	state Exp;
branches;
next	1.7;

1.7
date	98.10.30.19.36.51;	author thomas;	state Exp;
branches;
next	1.6;

1.6
date	98.09.30.05.41.39;	author thomas;	state Exp;
branches;
next	1.5;

1.5
date	98.09.25.13.41.25;	author thomas;	state Exp;
branches;
next	1.4;

1.4
date	98.07.29.06.29.04;	author thomas;	state Exp;
branches;
next	1.3;

1.3
date	98.05.13.05.33.30;	author thomas;	state Exp;
branches;
next	1.2;

1.2
date	98.03.01.20.44.37;	author thomas;	state Exp;
branches;
next	1.1;

1.1
date	98.03.01.08.18.09;	author thomas;	state Exp;
branches;
next	;

1.49.2.1
date	2005.01.30.20.32.41;	author tgl;	state Exp;
branches;
next	;

1.52.2.1
date	2002.11.11.20.02.07;	author petere;	state Exp;
branches;
next	1.52.2.2;

1.52.2.2
date	2002.11.26.19.22.40;	author momjian;	state Exp;
branches;
next	1.52.2.3;

1.52.2.3
date	2004.03.02.00.03.15;	author tgl;	state Exp;
branches;
next	;

1.57.2.1
date	2003.09.07.04.36.40;	author momjian;	state Exp;
branches;
next	;

1.59.2.1
date	2004.03.02.00.03.08;	author tgl;	state Exp;
branches;
next	1.59.2.2;

1.59.2.2
date	2004.03.09.20.08.21;	author momjian;	state Exp;
branches;
next	1.59.2.3;

1.59.2.3
date	2004.03.09.20.10.19;	author momjian;	state Exp;
branches;
next	1.59.2.4;

1.59.2.4
date	2009.05.02.20.18.21;	author tgl;	state Exp;
branches;
next	;

1.75.4.1
date	2009.05.02.20.18.09;	author tgl;	state Exp;
branches;
next	;

1.75.6.1
date	2009.05.02.20.17.57;	author tgl;	state Exp;
branches;
next	;

1.81.2.1
date	2006.12.15.01.21.08;	author momjian;	state Exp;
branches;
next	1.81.2.2;

1.81.2.2
date	2006.12.15.16.50.10;	author momjian;	state Exp;
branches;
next	1.81.2.3;

1.81.2.3
date	2007.05.18.09.43.15;	author petere;	state Exp;
branches;
next	1.81.2.4;

1.81.2.4
date	2009.05.02.20.17.45;	author tgl;	state Exp;
branches;
next	;

1.105.2.1
date	2009.05.02.20.17.33;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.148
log
@postgres.txt should get cleaned by 'make clean'.
@
text
@#----------------------------------------------------------------------------
#
# PostgreSQL documentation makefile
#
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.147 2010/06/12 17:17:25 momjian Exp $
#
#----------------------------------------------------------------------------

# This makefile is for building and installing the documentation.
# When a release tarball is created, the documentation files are
# prepared using the distprep target.  In CVS-based trees these files
# don't exist, unless explicitly built, so we skip the installation in
# that case.


# Make "html" the default target, since that is what most people tend
# to want to use.
html:

subdir = doc/src/sgml
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global


all: html man

distprep: html distprep-man


ifndef COLLATEINDEX
COLLATEINDEX = $(DOCBOOKSTYLE)/bin/collateindex.pl
endif

ifndef JADE
JADE = jade
endif
SGMLINCLUDE = -D . -D $(srcdir)

ifndef NSGMLS
NSGMLS = nsgmls
endif

ifndef OSX
OSX = osx
endif

ifndef XSLTPROC
XSLTPROC = xsltproc
endif

override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION)'


GENERATED_SGML = bookindex.sgml version.sgml \
	features-supported.sgml features-unsupported.sgml

ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) $(GENERATED_SGML)

# Sometimes we don't want this one.
ALMOSTALLSGML := $(filter-out %bookindex.sgml,$(ALLSGML))

ifdef DOCBOOKSTYLE
CATALOG = -c $(DOCBOOKSTYLE)/catalog
endif

# Enable some extra warnings
# -wfully-tagged needed to throw a warning on missing tags 
# for older tool chains, 2007-08-31
# Note: try "make SPFLAGS=-wxml" to catch a lot of other dubious constructs,
# in particular < and & that haven't been made into entities.  It's far too
# noisy to turn on by default, unfortunately.
override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged

##
## Man pages
##

man distprep-man: man-stamp

man-stamp: stylesheet-man.xsl postgres.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_MAN_FLAGS) $^
	touch $@@


##
## HTML
##

.PHONY: draft

JADE.html.call = $(JADE) $(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t sgml -i output-html

# The draft target creates HTML output in draft mode, without index (for faster build).
draft: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
	$(MKDIR_P) html
	$(JADE.html.call) -V draft-mode $<
	cp $(srcdir)/stylesheet.css html/

html: html-stamp

html-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl
	$(MKDIR_P) html
	$(JADE.html.call) -i include-index $<
	cp $(srcdir)/stylesheet.css html/
	touch $@@

# single-page HTML
postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl
	$(JADE.html.call) -V nochunks -V rootchunk -V '(define %root-filename% #f)' -V '(define use-output-dir #f)' -i include-index $<

# single-page text
postgres.txt: postgres.html
	$(LYNX) -force_html -dump -nolist $< > $@@

HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
	@@$(MKDIR_P) html
	$(JADE.html.call) -V html-index $<

bookindex.sgml: HTML.index
	LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g -i 'bookindex' -o $@@ $<

# Technically, this should depend on Makefile.global, but then
# version.sgml would need to be rebuilt after every configure run,
# even in distribution tarballs.  So this is cheating a bit, but it
# will achieve the goal of updating the version number when it
# changes.
version.sgml: $(top_srcdir)/configure
	{ \
	  echo "<!entity version \"$(VERSION)\">"; \
	  echo "<!entity majorversion \"$(MAJORVERSION)\">"; \
	} > $@@

features-supported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.txt $(top_srcdir)/src/backend/catalog/sql_features.txt
	$(PERL) $(srcdir)/mk_feature_tables.pl YES $^ > $@@

features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.txt $(top_srcdir)/src/backend/catalog/sql_features.txt
	$(PERL) $(srcdir)/mk_feature_tables.pl NO $^ > $@@


##
## Print
##


# RTF to allow minor editing for hardcopy
%.rtf: %.sgml $(ALLSGML)
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print  -i include-index postgres.sgml

# TeX
# Regular TeX and pdfTeX have slightly differing requirements, so we
# need to distinguish the path we're taking.

JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/stylesheet.dsl -t tex -V tex-backend -i output-print -i include-index

%-A4.tex-ps: %.sgml $(ALLSGML)
	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@@ $<

%-US.tex-ps: %.sgml $(ALLSGML)
	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@@ $<

%-A4.tex-pdf: %.sgml $(ALLSGML)
	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@@ $<

%-US.tex-pdf: %.sgml $(ALLSGML)
	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@@ $<

%.dvi: %.tex-ps
	@@rm -f $*.aux $*.log
# multiple runs are necessary to create proper intra-document links
	jadetex $<
	jadetex $<
	jadetex $<

# PostScript from TeX
postgres.ps:
	$(error Invalid target;  use postgres-A4.ps or postgres-US.ps as targets)

%.ps: %.dvi
	dvips -o $@@ $<

postgres.pdf:
	$(error Invalid target;  use postgres-A4.pdf or postgres-US.pdf as targets)

%.pdf: %.tex-pdf
	@@rm -f $*.aux $*.log $*.out
# multiple runs are necessary to create proper intra-document links
	pdfjadetex $<
	pdfjadetex $<
	pdfjadetex $<

# Cancel built-in suffix rules, interfering with PS building
.SUFFIXES:


# This generates an XML version of the flow-object tree.  It's useful
# for debugging DSSSL code, and possibly to interface to some other
# tools that can make use of this.
%.fot: %.sgml $(ALLSGML)
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t fot -i output-print -i include-index -o $@@ $<


##
## Semi-automatic generation of some text files.
##

JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-text -t sgml
LYNX = lynx

INSTALL HISTORY regress_README: % : %.html
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin > $@@

INSTALL.html: standalone-install.sgml installation.sgml version.sgml
	$(JADE.text) -V nochunks standalone-install.sgml installation.sgml > $@@

HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
	$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
	$(JADE.text) -V nochunks tempfile_HISTORY.sgml > $@@
	rm tempfile_HISTORY.sgml

regress_README.html: regress.sgml
	( echo '<!doctype chapter PUBLIC "-//OASIS//DTD DocBook V4.2//EN" ['; \
	  echo '<!entity % standalone-ignore "IGNORE">'; \
	  echo '<!entity % standalone-include "INCLUDE"> ]>'; \
	  cat $< ) >tempfile_regress_README.sgml
	$(JADE.text) -V nochunks tempfile_regress_README.sgml > $@@
	rm tempfile_regress_README.sgml


##
## XSLT processing
##

# For obscure reasons, gmake 3.81 complains about circular dependencies
# if we try to do "make all" in a VPATH build without the explicit
# $(srcdir) on the postgres.sgml dependency in this rule.  gmake bug?
postgres.xml: $(srcdir)/postgres.sgml $(ALMOSTALLSGML)
	$(OSX) -D. -x lower $< >postgres.xmltmp
	$(PERL) -p -e 's/\[(amp|copy|egrave|gt|lt|mdash|nbsp|ouml|pi|quot|uuml) *\]/\&\1;/g;' \
	           -e '$$_ .= qq{<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\n} if $$. == 1;' \
	  <postgres.xmltmp > $@@
	rm postgres.xmltmp
# ' hello Emacs

xslthtml: stylesheet.xsl postgres.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $^

htmlhelp: stylesheet-hh.xsl postgres.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) $^

%-A4.fo: stylesheet-fo.xsl %.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam paper.type A4 -o $@@ $^

%-US.fo: stylesheet-fo.xsl %.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam paper.type USletter -o $@@ $^


##
## Experimental Texinfo targets
##

DB2X_TEXIXML = db2x_texixml
DB2X_XSLTPROC = db2x_xsltproc
MAKEINFO = makeinfo

%.texixml: %.xml
	$(DB2X_XSLTPROC) -s texi -g output-file=$(basename $@@) $< -o $@@

%.texi: %.texixml
	$(DB2X_TEXIXML) --encoding=iso-8859-1//TRANSLIT $< --to-stdout > $@@

%.info: %.texi
	$(MAKEINFO) --enable-encoding --no-split --no-validate $< -o $@@


##
## Check
##

# Quick syntax check without style processing
check: postgres.sgml $(ALMOSTALLSGML) check-tabs
	$(NSGMLS) $(SPFLAGS) $(SGMLINCLUDE) -s $<


##
## Install
##

install: install-html

ifneq ($(PORTNAME), sco)
install: install-man
endif

installdirs:
	$(MKDIR_P) '$(DESTDIR)$(htmldir)'/html $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))

uninstall:
	rm -f '$(DESTDIR)$(htmldir)/html/'* $(addprefix  '$(DESTDIR)$(mandir)'/man, 1/* 3/* $(sqlmansectnum)/*)


## Install html

install-html: html installdirs
	cp -R $(call vpathsearch,html) '$(DESTDIR)$(htmldir)'


## Install man

install-man: man installdirs

sqlmansect ?= 7
sqlmansectnum = $(shell expr X'$(sqlmansect)' : X'\([0-9]\)')

# Before we install the man pages, we massage the section numbers to
# follow the local conventions.
#
ifeq ($(sqlmansectnum),7)
install-man:
	cp -R $(foreach dir,man1 man3 man7,$(call vpathsearch,$(dir))) '$(DESTDIR)$(mandir)'

else # sqlmansectnum != 7
fix_sqlmansectnum = sed -e '/^\.TH/s/"7"/"$(sqlmansect)"/' \
			-e 's/\\fR(7)/\\fR($(sqlmansectnum))/g' \
			-e '1s/^\.so man7/.so man$(sqlmansectnum)/g;1s/^\(\.so.*\)\.7$$/\1.$(sqlmansect)/g'

man: fixed-man-stamp

fixed-man-stamp: man-stamp
	@@$(MKDIR_P) $(addprefix fixedman/,man1 man3 man$(sqlmansectnum))
	for file in $(call vpathsearch,man1)/*.1; do $(fix_sqlmansectnum) $$file >fixedman/man1/`basename $$file` || exit; done
	for file in $(call vpathsearch,man3)/*.3; do $(fix_sqlmansectnum) $$file >fixedman/man3/`basename $$file` || exit; done
	for file in $(call vpathsearch,man7)/*.7; do $(fix_sqlmansectnum) $$file >fixedman/man$(sqlmansectnum)/`basename $$file | sed s/\.7$$/.$(sqlmansect)/` || exit; done

install-man:
	cp -R $(foreach dir,man1 man3 man$(sqlmansectnum),fixedman/$(dir)) '$(DESTDIR)$(mandir)'

clean: clean-man
.PHONY: clean-man
clean-man:
	rm -rf fixedman/ fixed-man-stamp

endif # sqlmansectnum != 7

# tabs are harmless, but it is best to avoid them in SGML files
check-tabs:
	@@( ! grep '	' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) ) || (echo "Tabs appear in SGML files";  exit 1)

##
## Clean
##

# This allows removing some files from the distribution tarballs while
# keeping the dependencies satisfied.
.SECONDARY: postgres.xml $(GENERATED_SGML) HTML.index
.SECONDARY: INSTALL.html HISTORY.html regress_README.html
.SECONDARY: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf

clean:
# text --- these are shipped, but not in this directory
	rm -f INSTALL HISTORY regress_README
	rm -f INSTALL.html HISTORY.html regress_README.html
# single-page output
	rm -f postgres.html postgres.txt
# print
	rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot
# index
	rm -f HTML.index $(GENERATED_SGML)
# XSLT
	rm -f postgres.xml postgres.xmltmp htmlhelp.hhp toc.hhc index.hhk *.fo
# Texinfo
	rm -f *.texixml *.texi *.info db2texi.refs

distclean: clean

maintainer-clean: distclean
# HTML
	rm -fr html/ html-stamp
# man
	rm -rf man1/ man3/ man7/ man-stamp
@


1.147
log
@Remove lynx -stdin flag for postgres.text.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.146 2010/06/12 15:58:38 momjian Exp $
d362 2
a363 2
# other HTML
	rm -f postgres.html
@


1.146
log
@Add SGML Makefile rule for single-page text, postgres.txt.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.145 2010/06/12 15:42:44 momjian Exp $
d113 1
a113 1
	$(LYNX) -force_html -dump -nolist -stdin $< > $@@
@


1.145
log
@Add space between after ">" in ">$@@" in SGML Makefile, for clarity.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.144 2010/06/12 09:55:12 petere Exp $
d111 4
@


1.144
log
@Add target to build HTML documentation as single page
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.143 2010/05/13 11:49:47 petere Exp $
d127 1
a127 1
	} >$@@
d206 1
a206 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin >$@@
d209 1
a209 1
	$(JADE.text) -V nochunks standalone-install.sgml installation.sgml >$@@
d213 1
a213 1
	$(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@@
d221 1
a221 1
	$(JADE.text) -V nochunks tempfile_regress_README.sgml >$@@
d236 1
a236 1
	  <postgres.xmltmp >$@@
d265 1
a265 1
	$(DB2X_TEXIXML) --encoding=iso-8859-1//TRANSLIT $< --to-stdout >$@@
@


1.143
log
@Fix vpath installation from distribution tarball (bug #5447)
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.142 2010/05/01 21:31:17 tgl Exp $
d107 4
d358 2
@


1.142
log
@Install hack workaround for failure of 'make all' in VPATH builds.
It appears that gmake gets confused if postgres.sgml is not present in
the working directory, and instantiates some default rule or other that
would let postgres.sgml be built from postgres.xml.  I haven't been able
to track down exactly where that's coming from, but the problem can be
dodged by specifying srcdir explicitly in the rule for postgres.xml.
Per report from Vladimir Kokovic.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.141 2010/05/01 18:15:07 tgl Exp $
a279 2
vpathsearch = `for f in $(addsuffix /$(1),$(subst :, ,. $(VPATH))); do test -r $$f && echo $$f && break; done`

@


1.141
log
@Adjust postgres.xml rule so that make will notice a failure exit from osx.
The previous coding had it in a pipe, which on most shells won't report
the error.  Per experimentation with a bug report from Vladimir Kokovic.
This doesn't actually fix his problem, but it does explain why make
didn't report that there was a problem.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.140 2010/04/02 14:02:49 petere Exp $
d225 4
a228 1
postgres.xml: postgres.sgml $(ALMOSTALLSGML)
@


1.140
log
@Fix the build and install rules for man pages with SQL section != 7

The previous coding failed in various scenarios possibly including vpath
builds and doing make install without preceding make all.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.139 2010/03/30 00:10:46 petere Exp $
d226 5
a230 4
	$(OSX) -D. -x lower $< | \
	  $(PERL) -p -e 's/\[(amp|copy|egrave|gt|lt|mdash|nbsp|ouml|pi|quot|uuml) *\]/\&\1;/g;' \
	             -e '$$_ .= qq{<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\n} if $$. == 1;' \
	  >$@@
d358 1
a358 1
	rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk *.fo
@


1.139
log
@Separate targets "make docs" and "make install-docs" for the documentation

It is no longer installed by default, but included in "make world"/"make
install-world".  Documentation updated accordingly.

Also, fix vpathsearch function to work when calling make install-docs
without previous make docs.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.138 2010/02/05 19:31:18 momjian Exp $
d316 1
a316 2
nonsql_manpage_files := $(wildcard $(srcdir)/man1/*.1 $(srcdir)/man3/*.3)
sql_manpage_files := $(wildcard $(srcdir)/man7/*.7)
d318 5
a322 2
fixed_nonsql_manpage_files = $(patsubst $(srcdir)/%,fixedman/%,$(nonsql_manpage_files))
fixed_sql_manpage_files = $(patsubst $(srcdir)/man7/%.7,fixedman/man$(sqlmansectnum)/%.$(sqlmansect),$(sql_manpage_files))
d324 2
a325 14
fixed_manpage_files = $(fixed_nonsql_manpage_files) $(fixed_sql_manpage_files)

man: $(fixed_manpage_files)

$(fixed_nonsql_manpage_files): fixedman/%: %
	@@$(MKDIR_P) $(dir $@@)
	$(fix_sqlmansectnum) $< >$@@

$(fixed_sql_manpage_files): fixedman/man$(sqlmansectnum)/%.$(sqlmansect): man7/%.7
	@@$(MKDIR_P) $(dir $@@)
	$(fix_sqlmansectnum) $< >$@@

install-man: man
	cp -R $(sort $(dir $(fixed_manpage_files))) '$(DESTDIR)$(mandir)'
d330 1
a330 1
	rm -rf fixedman/
@


1.138
log
@Previous commit was to have tab checking as part of gmake check.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.137 2010/02/05 19:28:39 momjian Exp $
d25 3
a27 1
distprep: html man
d78 1
a78 1
man: man-stamp
d276 1
a276 1
vpathsearch = $(firstword $(wildcard $(addsuffix /$(1),$(subst :, ,. $(VPATH)))))
d278 1
a278 1
found_html = $(wildcard html-stamp $(srcdir)/html-stamp)
a279 2
ifneq ($(wildcard man-stamp $(srcdir)/man-stamp),)
# SCO OpenServer's man system is sufficiently different to not bother.
d281 1
a281 2
found_man = yes
endif
a283 2
install: $(if $(found_html),install-html) $(if $(found_man),install-man)

d324 1
a324 2
all: all-man
all-man: $(fixed_manpage_files)
d334 1
a334 1
install-man: all-man
@


1.137
log
@*** empty log message ***
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.136 2010/02/05 14:51:50 momjian Exp $
d348 1
@


1.136
log
@Add SGML 'check-tabs' Makefile rule to check for tabs.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.135 2010/01/06 19:07:05 tgl Exp $
d266 1
a266 1
check: postgres.sgml $(ALMOSTALLSGML)
d349 1
a349 1
	( ! grep '	' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) ) || (echo "Tabs appear in SGML files";  exit 1)
@


1.135
log
@Fix missing <manvolnum> markers in dblink reference entries.
Silences complaints from "make man", and allows these man pages
to be included in man3/.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.134 2009/12/30 13:48:52 petere Exp $
d348 2
@


1.134
log
@Revert makefile refactoring (version 1.123) because it doesn't work
when building several files at once (e.g.,
gmake postgres-A4.pdf postgres-US.pdf).
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.133 2009/10/06 20:00:44 petere Exp $
a79 1
	rm man1/dblink*
@


1.133
log
@Clean up the clean rules of the documentation

Most things should be cleaned by "make clean", except the parts that are
shipped in the tarball.  These rules had gotten a bit out of whack after
the various restructurings of the documentation build rules.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.132 2009/10/06 00:54:26 alvherre Exp $
d146 2
a147 4
%-A4.tex-ps %-US.tex-ps : JADE_OUTPUT=texdvi-output
%-A4.tex-pdf %-US.tex-pdf : JADE_OUTPUT=texpdf-output
%-A4.tex-ps %-A4.tex-pdf : JADE_PAPER=A4
%-US.tex-ps %-US.tex-pdf : JADE_PAPER=USletter
d149 8
a156 2
%-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf: %.sgml $(ALLSGML)
	$(JADE.tex.call) -V $(JADE_OUTPUT) -V '%paper-type%'=$(JADE_PAPER) -o $@@ $<
@


1.132
log
@Really unbreak maintainer-clean.

(Or rather, unbreak what the previous commit broke)
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.131 2009/10/05 23:58:49 alvherre Exp $
d357 2
a358 1
	rm -f postgres.xml $(GENERATED_SGML) HTML.index
a359 5
	rm -f $(addprefix $(srcdir)/,*.tex-ps *.tex-pdf *.dvi *.aux *.log *.out *.fot)

distclean: clean
# text --- these are shipped, but not in this directory
	rm -f $(addprefix $(srcdir)/,INSTALL HISTORY regress_README)
d361 1
a361 1
	rm -f $(addprefix $(srcdir)/,*.rtf *.ps *.pdf)
d363 1
a363 1
	rm -f $(addprefix $(srcdir)/,HTML.index $(GENERATED_SGML))
d365 1
a365 1
	rm -f $(addprefix $(srcdir)/,htmlhelp.hhp toc.hhc index.hhk *.fo)
d367 3
a369 1
	rm -f $(addprefix $(srcdir)/,*.texixml *.texi *.info db2texi.refs)
@


1.131
log
@Unbreak doc/src/sgml maintainer-clean rule on VPATH builds.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.130 2009/09/14 13:23:48 petere Exp $
d374 4
a377 1
	rm -rf html-stamp man-stamp
@


1.130
log
@Print builds don't actually depend on html target (anymore).
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.129 2009/08/28 20:26:18 petere Exp $
d374 1
a374 4
# HTML
	rm -rf $(addprefix $(srcdir)/,html/ html-stamp)
# man
	rm -rf $(addprefix $(srcdir)/,man1/ man3/ man7/ man-stamp)
@


1.129
log
@Derived files that are shipped in the distribution used to be built in the
source directory even for out-of-tree builds.  They are now alsl built in
the build tree.  This should be more convenient for certain developers'
workflows, and shouldn't really break anything else.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.128 2009/08/26 22:24:42 petere Exp $
d137 1
a137 1
%.rtf: %.sgml $(ALLSGML) html
d151 1
a151 1
%-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf: %.sgml $(ALLSGML) html
d185 1
a185 1
%.fot: %.sgml $(ALLSGML) html
@


1.128
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.127 2009/08/17 21:29:30 petere Exp $
d35 1
a35 1
SGMLINCLUDE = -D $(srcdir)
d78 1
a78 5
ifeq ($(vpath_build),yes)
XSLTPROC_MAN_FLAGS = --stringparam man.output.base.dir '$(srcdir)/'
endif

$(srcdir)/man-stamp: stylesheet-man.xsl postgres.xml
d80 1
a80 1
	rm $(srcdir)/man1/dblink*
a90 4
ifeq ($(vpath_build),yes)
# This only works with openjade, not with the older jade.
JADE.html.call += -V '(define %output-dir% "$(srcdir)/html")'
endif
d94 1
a94 1
	$(MKDIR_P) $(srcdir)/html
d96 1
a96 1
	cp $(srcdir)/stylesheet.css $(srcdir)/html/
d100 2
a101 2
$(srcdir)/html-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl
	$(MKDIR_P) $(srcdir)/html
d103 1
a103 1
	cp $(srcdir)/stylesheet.css $(srcdir)/html/
d106 2
a107 2
$(srcdir)/HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
	@@$(MKDIR_P) $(srcdir)/html
d110 1
a110 1
$(srcdir)/bookindex.sgml: HTML.index
d118 1
a118 1
$(srcdir)/version.sgml: $(top_srcdir)/configure
d124 1
a124 1
$(srcdir)/features-supported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.txt $(top_srcdir)/src/backend/catalog/sql_features.txt
d127 1
a127 1
$(srcdir)/features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.txt $(top_srcdir)/src/backend/catalog/sql_features.txt
a226 4
ifeq ($(vpath_build),yes)
XSLTPROC_HTML_FLAGS = --stringparam base.dir '$(srcdir)/html'
endif

d271 3
a273 1
found_html = $(wildcard $(srcdir)/html-stamp)
d275 1
a275 1
ifneq ($(wildcard $(srcdir)/man-stamp),)
d294 1
a294 1
	cp -R $(srcdir)/html '$(DESTDIR)$(htmldir)'
d309 1
a309 1
	cp -R $(addprefix $(srcdir)/,man1 man3 man7) '$(DESTDIR)$(mandir)'
@


1.127
log
@Make version.sgml depend on configure instead of Makefile.global.  This
cheats a bit, but it avoids unsatisfied dependencies in distribution
tarballs.  (found by make distcheck)
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.126 2009/08/15 01:56:35 tgl Exp $
d102 1
a102 1
	$(mkinstalldirs) $(srcdir)/html
d109 1
a109 1
	$(mkinstalldirs) $(srcdir)/html
d115 1
a115 1
	@@$(mkinstalldirs) $(srcdir)/html
d295 1
a295 1
	$(mkinstalldirs) '$(DESTDIR)$(htmldir)'/html $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))
d338 1
a338 1
	@@$(mkinstalldirs) $(dir $@@)
d342 1
a342 1
	@@$(mkinstalldirs) $(dir $@@)
@


1.126
log
@Make sure that 'make distclean' cleans out all files that are not meant
to be shipped.  Also, allow 'make clean' to remove intermediate working files.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.125 2009/08/11 22:21:51 petere Exp $
d121 6
a126 1
$(srcdir)/version.sgml: $(top_builddir)/src/Makefile.global
@


1.125
log
@Remove unnecessary files from distribution
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.124 2009/08/11 21:53:06 petere Exp $
a180 2
.PRECIOUS: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf

d358 2
d361 1
a361 1
distclean:
d363 2
d366 3
a368 5
maintainer-clean: distclean
# HTML
	rm -rf $(addprefix $(srcdir)/,html/ html-stamp)
# man
	rm -rf $(addprefix $(srcdir)/,man1/ man3/ man7/ man-stamp)
d370 1
a370 1
	rm -f $(addprefix $(srcdir)/,*.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot)
a372 2
# text
	rm -f $(addprefix $(srcdir)/,INSTALL HISTORY regress_README)
d377 6
@


1.124
log
@Simplify and speed up man page installation
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.123 2009/08/11 20:16:03 alvherre Exp $
a224 4
# This allows removing postgres.xml in the distribution tarballs while
# keeping the dependencies satisfied.
.SECONDARY: postgres.xml

d357 4
d362 1
a362 1
	rm -f postgres.xml
@


1.123
log
@Refactor some $(JADE.tex.call)s
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.122 2009/08/09 22:47:59 petere Exp $
d310 2
a314 6
define install-man-func
for file in $(1); do \
  $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/`echo $$file | sed 's,^$(2),,'` || exit; \
done
endef

d320 1
a320 1
	$(call install-man-func,$(addprefix $(srcdir)/,man1/*.1 man3/*.3 man$(sqlmansectnum)/*.$(sqlmansect)),$(srcdir)/)
d347 1
a347 1
	$(call install-man-func,$(fixed_manpage_files),fixedman/)
@


1.122
log
@Ship documentation without intermediate tarballs

Documentation files in HTML and man formats are now prepared for
distribution using the distprep make target, like everything else.  They
are placed in doc/src/sgml/html and manX and installed from there by
make install, if present.  The business with the tarballs in the tarball
is gone.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.121 2009/08/05 19:31:50 alvherre Exp $
d149 4
a152 2
%-A4.tex-ps: %.sgml $(ALLSGML) html
	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@@ $<
d154 2
a155 8
%-US.tex-ps: %.sgml $(ALLSGML) html
	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@@ $<

%-A4.tex-pdf: %.sgml $(ALLSGML) html
	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@@ $<

%-US.tex-pdf: %.sgml $(ALLSGML) html
	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@@ $<
@


1.121
log
@Fix manpages related to SPI functions.

This patch adds declaration so that they end up in section 3, and adds
them to the Makefiles to install them.

Also, some synopses needed reflowing so that they look nice in 80-column
terminals.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.120 2009/08/04 22:04:37 petere Exp $
d9 11
d24 3
a26 2
.NOTPARALLEL:
.PRECIOUS: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf
a36 7
# If this is a vpath build, some generated SGML will be in the build
# tree, so we need to make sure we look there as well as in the
# source tree
ifeq ($(vpath_build), yes)
SGMLINCLUDE += -D .
endif

d76 1
a76 1
.PHONY: man
d78 3
a80 1
man: man-stamp
d82 3
a84 3
man-stamp: stylesheet-man.xsl postgres.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) $^
	rm man1/dblink*
d92 1
a92 3
all: html

.PHONY: html draft
d95 4
d102 1
d104 1
d108 2
a109 2
html-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl
	@@rm -f *.html
d111 1
a111 3
ifeq ($(vpath_build), yes)
	@@cp $(srcdir)/stylesheet.css .
endif
d114 2
a115 1
HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
d118 1
a118 1
bookindex.sgml: HTML.index
d121 1
a121 1
version.sgml: $(top_builddir)/src/Makefile.global
d127 1
a127 1
features-supported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.txt $(top_srcdir)/src/backend/catalog/sql_features.txt
d130 1
a130 1
features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.txt $(top_srcdir)/src/backend/catalog/sql_features.txt
d185 5
d229 4
d240 4
d245 1
a245 1
	$(XSLTPROC) $(XSLTPROCFLAGS) $^
a273 3
# Cancel built-in suffix rules, interfering with PS building
.SUFFIXES:

d285 81
d369 4
a372 1
clean distclean maintainer-clean:
d374 1
a374 1
	rm -f *.html html-stamp
d376 1
a376 1
	rm -rf man1 man3 man7 man-stamp
d378 1
a378 1
	rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot
d380 1
a380 1
	rm -f HTML.index $(GENERATED_SGML)
d382 1
a382 1
	rm -f INSTALL HISTORY regress_README
d384 1
a384 1
	rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk *.fo
d386 1
a386 4
	rm -f *.texixml *.texi *.info db2texi.refs
ifeq ($(vpath_build), yes)
	rm -f stylesheet.css
endif
@


1.120
log
@Use DocBook XSL stylesheets for man page building

This switches the man page building process to use the DocBook XSL stylesheet
toolchain.  The previous targets for Docbook2X are removed. configure has been
updated to look for the new tools.  The Documentation appendix contains the
new build instructions.  There are also a few isolated tweaks in the
documentation to improve places that came out strangely in the man pages.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.119 2009/07/20 18:34:58 petere Exp $
d77 1
a77 1
	rm man1/SPI* man1/dblink*
d272 1
a272 1
	rm -rf man1 man7 man-stamp
@


1.119
log
@Small additional clean from the rearrangement of the HTML index build rules
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.118 2009/07/14 22:16:38 petere Exp $
d36 2
a37 2
ifndef SGMLSPL
SGMLSPL = sgmlspl
d40 2
a41 2
ifndef DOCBOOK2MAN
DOCBOOK2MAN = docbook2man_is_missing
d44 1
a44 3
# docbook2man generates man pages from docbook refentry source code.
D2MSCRIPT= $(D2MDIR)/docbook2man-spec.pl
D2MLINKS = $(D2MDIR)/docbook2man-spec_makelinks
d71 1
a71 1
.PHONY: html man draft clean
d73 1
a73 1
DEFAULTSECTION = l
d75 4
a78 15
fix_man_xrefs = $(PERL) -npi -e 's{\[XRef to GUC-([A-Z0-9-]*)\]}{($$l = $$1) =~ tr/A-Z-/a-z_/, $$l}ge || s{\[XRef to [A-Z0-9-]*\]}{in the documentation}g'
lowercase = tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'

man: postgres.sgml $(ALLSGML)
	$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
# One more time, to resolve cross-references
	$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
	$(fix_man_xrefs) *.1 *.7
	$(mkinstalldirs) man1 man7
	$(D2MLINKS) < manpage.links
	mv *.1 man1/
	mv *.7 man7/
	rm *.$(DEFAULTSECTION)
# manpage.links doesn't handle lowercase, needs fixups
	cd man7 && for file in `awk '{ print $$2 }' ../manpage.links`; do $(lowercase) <$$file >`echo $$file | $(lowercase)` && rm $$file || exit; done
d87 2
a213 3
OSX = osx # (may be called sx or sgml2xml on some systems)
XSLTPROC = xsltproc

a220 2
override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION)'

a255 12
## Experimental man page building through docbook2x
##

manx: postgres.xml stylesheet-man.xsl
	$(DOCBOOK2MAN) --solinks -s $(srcdir)/stylesheet-man.xsl --string-param default-manpage-section=$(DEFAULTSECTION)  $<
	$(mkinstalldirs) man1 man7
	mv *.1 man1/
	mv *.7 man7/
	rm *.$(DEFAULTSECTION)


##
d272 1
a272 1
	rm -rf *.1 *.7 *.$(DEFAULTSECTION) man1 man7 manpage.refs manpage.links manpage.log
@


1.118
log
@Rearrangement of the HTML docs build rules

Set up proper makefile dependencies in the documentation build rules,
especially around the HTML/index build.  The problem we've had with all
previous solutions is that we have used the same file name, such as HTML.index
or bookindex.sgml, to mean different things at different stages of the build,
and make can't distinguish that.  The solution here is that the first jade run
produces HTML.index, but does not require bookindex.sgml at all, and produces
no other html output (the latter an idea from Alvaro).  The second jade run
includes bookindex.sgml, but does not recreate HTML.index.  That way, when you
change an sgml file, jade is run twice and at the end all dependencies are
satisfied.  Omitting the html output in the first stage also makes the full
build a lot faster.

When you run one of the print format targets, only the first jade run is run,
then the print target-specific commands.  If an HTML build has completed
previously, the first jade run is skipped because the dependencies have
already been satisfied.

The draft and check targets for quick builds and syntax verification are still
there.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.117 2009/06/25 21:15:38 petere Exp $
d228 1
a228 1
postgres.xml: postgres.sgml $(GENERATED_SGML)
d304 1
a304 1
	rm -f HTML.index HTML.index.start $(GENERATED_SGML)
@


1.117
log
@Man pages back to lowercase names, with additional fixup to make the .so
links work.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.116 2009/06/19 19:14:25 petere Exp $
d54 3
d100 7
a106 7
# The draft target creates HTML output in draft mode
draft : JADEFLAGS += -V draft-mode
draft: html-output

html: html-output
# Re-run this target until HTML.index does not change
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $@@
d108 1
a108 2
# This is run for all output formats because we need bookindex.sgml
html-output: postgres.sgml $(ALLSGML) stylesheet.dsl
d110 1
a110 1
	$(JADE) $(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-html -t sgml $<
d114 1
d116 2
a117 1
COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g
a118 1
# bookindex.sgml is required so there is a proper index for all output formats
d120 1
a120 11
# create a dummy bookindex.html
	test -s HTML.index || $(COLLATEINDEX) -o $@@ -N
# If HTML.index is valid, create a valid bookindex.sgml.
	test ! -s HTML.index || $(COLLATEINDEX) -i 'bookindex' -o $@@ $<
# save copy of HTML.index for later comparison
	@@cp HTML.index HTML.index.start

# HTML.index is used to create bookindex.sgml
HTML.index:
# create an empty HTML.index if it does not exist
	@@$(if $(wildcard HTML.index), , touch HTML.index)
d142 1
a142 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print postgres.sgml
d148 1
a148 1
JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/stylesheet.dsl -t tex -V tex-backend -i output-print
d191 1
a191 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t fot -i output-print -o $@@ $<
d288 1
a288 1
check: postgres.sgml $(ALLSGML)
d298 1
a298 1
	rm -f HTML.manifest *.html
@


1.116
log
@Don't convert the man page names to lower case, so that the .so links work.
This is pretty much a workaround for incomplete tools, but having the man
page names in upper case looks more natural anyway.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.115 2009/05/02 20:17:19 tgl Exp $
d75 1
d78 1
a78 1
	$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
d80 1
a80 1
	$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
d87 2
@


1.115
log
@Split the release notes into a separate file for each (active) major branch,
as per my recent proposal.  release.sgml itself is now just a stub that should
change rarely; ideally, only once per major release to add a new include line.
Most editing work will occur in the release-N.N.sgml files.  To update a back
branch for a minor release, just copy the appropriate release-N.N.sgml
file(s) into the back branch.

This commit doesn't change the end-product documentation at all, only the
source layout.  However, it makes it easy to start omitting ancient information
from newer branches' documentation, should we ever decide to do that.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.114 2008/12/11 07:34:07 petere Exp $
d77 1
a77 1
	$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
d79 1
a79 1
	$(NSGMLS) $(NSGMLS_FLAGS) $(SGMLINCLUDE) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
@


1.114
log
@Append major version number and for libraries soname major version number
to the gettext domain name, to simplify parallel installations.

Also, rename set_text_domain() to pg_bindtextdomain(), because that is what
it does.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.113 2008/11/26 11:26:54 petere Exp $
d176 1
a176 1
	
d182 1
a182 1
	
d211 2
a212 6
# remove links to main documentation
HISTORY.html: release.sgml
	( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V4.2//EN">'; \
	  cat $< ) | \
	$(PERL) -p -0 -e 's/<link\s+linkend[^>]*>//g' | \
	$(PERL) -p -e 's/<\/link>//g' >tempfile_HISTORY.sgml
@


1.113
log
@configure check for docbook2man program, used in the new XML-based man
page build target.  This covers from-source, Debian, and Fedora
installation variants.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.112 2008/11/14 10:22:45 petere Exp $
d129 1
a129 1
	  echo "<!entity majorversion \"`expr $(VERSION) : '\([0-9][0-9]*\.[0-9][0-9]*\)'`\">"; \
@


1.112
log
@Set SQL man pages to be section 7 by default, and only transform them to
another section if required by the platform (instead of the old way of
building them in section "l" and always transforming them to the
platform-specific section).

This speeds up the installation on common platforms, and it avoids some
funny business with the man page tools and build process.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.111 2008/11/12 16:01:51 petere Exp $
d40 4
a282 3
# called docbook2man on non-Debian
DOCBOOK2MAN = docbook2x-man

@


1.111
log
@Support for man page links, if a man page has more than one refname.

We don't actually use this anywhere, but it might come in handy for dealing
with SELECT/WITH/TABLE.

It works with both the old and the new man page target (for some value of
"works").
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.110 2008/11/04 14:58:22 petere Exp $
d68 1
a68 1
DEFAULTSECTION = $(sqlmansect_dummy)
d76 2
a77 2
	$(fix_man_xrefs) *.1 *.$(DEFAULTSECTION)
	$(mkinstalldirs) man1 man$(DEFAULTSECTION)
d80 2
a81 1
	mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/
d284 1
a284 1
	$(mkinstalldirs) man1 man$(DEFAULTSECTION)
d286 2
a287 1
	mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/
d307 1
a307 1
	rm -rf *.1 *.$(DEFAULTSECTION) man1 man$(DEFAULTSECTION) manpage.refs manpage.links manpage.log
@


1.110
log
@Experimental new support for building man pages via docbook2x, an XSL-based
tool chain.  With some polishing, this might help us get rid of our ancient
and crufty man page build mechanism.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.109 2008/10/31 14:35:30 petere Exp $
d42 1
d78 1
d282 1
a282 1
	$(DOCBOOK2MAN) -s $(srcdir)/stylesheet-man.xsl --string-param default-manpage-section=$(DEFAULTSECTION)  $<
@


1.109
log
@The conversion rule from postgres.sgml to postgres.xml didn't work with
BSD sed.  So write it in Perl, which is more portable and a bit faster, too.
We already use Perl for standard documentation builds, so this imposes no
additional requirement.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.108 2008/10/04 02:19:08 tgl Exp $
d273 14
@


1.108
log
@Add a note about how to check for bare < and & in SGML docs, before the
knowledge disappears again.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.107 2008/08/25 15:34:05 alvherre Exp $
d231 2
a232 2
	  sed -e 's/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\|ouml\|pi\|quot\|uuml\) *\]/\&\1;/g' \
	      -e '1a\' -e '<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">' \
@


1.107
log
@Have man page generation work on VPATH builds too.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.106 2008/06/10 00:19:32 alvherre Exp $
d56 3
@


1.106
log
@Make XML building work silently on VPATH builds (untested on regular builds).
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.105 2007/12/15 10:28:21 momjian Exp $
d69 1
a69 1
	$(NSGMLS) $(NSGMLS_FLAGS) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
d71 1
a71 1
	$(NSGMLS) $(NSGMLS_FLAGS) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
@


1.105
log
@Use clearer error message for gmake postgres.pdf:

  Makefile:171: *** Invalid target;  use postgres-A4.pdf or postgres-US.pdf as targets.  Stop.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.104 2007/12/14 14:11:02 petere Exp $
d227 1
a227 1
	$(OSX) -x lower $< | \
@


1.105.2.1
log
@Split the release notes into a separate file for each (active) major branch,
as per my recent proposal.  release.sgml itself is now just a stub that should
change rarely; ideally, only once per major release to add a new include line.
Most editing work will occur in the release-N.N.sgml files.  To update a back
branch for a minor release, just copy the appropriate release-N.N.sgml
file(s) into the back branch.

This commit doesn't change the end-product documentation at all, only the
source layout.  However, it makes it easy to start omitting ancient information
from newer branches' documentation, should we ever decide to do that.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.105 2007/12/15 10:28:21 momjian Exp $
d166 1
a166 1

d172 1
a172 1

d201 6
a206 2
HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
	$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
@


1.104
log
@Make error message more accurate
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.103 2007/12/14 13:20:30 momjian Exp $
d165 1
a165 1
	$(error Use "$(MAKE) postgres-A4.ps" or "$(MAKE) postgres-US.ps")
d171 1
a171 1
	$(error Use "$(MAKE) postgres-A4.pdf" or "$(MAKE) postgres-US.pdf")
@


1.103
log
@Add default error rules for making postgres.pdf and postgres.ps,
suggesting proper target names.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.102 2007/12/05 10:06:08 petere Exp $
d165 1
a165 1
	$(error Use 'gmake postgres-US.ps' or 'gmake postgres-A4.ps')
d171 1
a171 1
	$(error Use 'gmake postgres-US.pdf' or 'gmake postgres-A4.pdf')
@


1.102
log
@Remove unused, occasionally confusing graphics building support.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.101 2007/10/07 00:32:11 alvherre Exp $
d164 3
d170 3
@


1.101
log
@Clean up the doc makefile for draft HTML generation.  It no longer works
to do "make DRAFT=Y html"; you need to use "make draft" (which was also
supported previously).
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.100 2007/10/07 00:23:21 alvherre Exp $
a39 3
CONVERT = convert
EPSTOPDF = epstopdf

a181 12
# Graphics

%.gif:
	cp $(srcdir)/../graphics/$@@ .

%.eps: %.gif
	$(CONVERT) $< eps:$@@

%.pdf: %.eps
	$(EPSTOPDF) $<


d278 1
a278 1
	rm -f HTML.manifest *.html *.gif
d282 1
a282 1
	rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.eps *.fot
@


1.100
log
@Remove stylesheet.css file on "make clean", created only on VPATH builds.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.99 2007/08/31 16:41:52 momjian Exp $
a55 5
# Enable draft mode during development
ifeq ($(DRAFT), Y)
override JADEFLAGS += -V draft-mode
endif

d87 8
d96 1
a96 1
html: postgres.sgml $(ALLSGML) stylesheet.dsl
a101 11
ifneq ($(DRAFT), Y)
# If not draft, re-run the this rule until HTML.index does not change
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $@@
endif


# The draft rule calls gmake again and sets the DRAFT variable.
# This seems to be the only way to set gmake variables in a rule.
draft:
	@@$(MAKE) DRAFT="Y" html

@


1.99
log
@Add comment on why SGML -wfully-tagged flag is needed (for older SGML
tool chains).
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.98 2007/08/31 02:03:02 momjian Exp $
d314 3
@


1.98
log
@Add openjade warning -wfully-tagged to warn about missing close tags on
older SGML toolchains.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.97 2007/05/18 15:55:03 petere Exp $
d62 2
@


1.97
log
@Mark some intermediate targets as .PRECIOUS, to replace the recently removed
.SECONDARY target.  This makes experimentation with the PDF builds easier.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.96 2007/02/09 20:40:13 neilc Exp $
d62 1
a62 1
override SPFLAGS += -wall -wno-unused-param -wno-empty
@


1.96
log
@Unbreak the SGML doc build: ":=" is needed to assign to variables if
the RHS of the assignment expands to a reference to the LHS.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.95 2007/02/09 15:55:57 petere Exp $
d14 1
@


1.95
log
@Replace useless uses of := by = in makefiles.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.94 2007/01/27 22:44:32 momjian Exp $
d108 1
a108 1
COLLATEINDEX = LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g
@


1.94
log
@Modify SGML makefile to allow 'gmake draft' to build draft html ('draft'
is now a target, no longer a modifier).
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.93 2007/01/26 23:51:39 momjian Exp $
d69 1
a69 1
DEFAULTSECTION := $(sqlmansect_dummy)
d108 1
a108 1
COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g
@


1.93
log
@Control openjade draft-mode by variable DRAFT, rather than whether the
version tag is 'devel'.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.92 2007/01/26 22:23:49 momjian Exp $
d102 6
@


1.92
log
@Modify draft SGML instructions to use DRAFT=Y because recursion was
causing html to be called twice --- no way to exit the makefile after
the recursion returns.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.91 2007/01/11 00:02:39 momjian Exp $
d56 1
a56 1
ifneq (,$(findstring devel, $(VERSION)))
@


1.91
log
@Remove SGML makefile .SECONDARY tag so html rules will work properly;
Documentation/comment improvements.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.90 2007/01/10 19:06:04 momjian Exp $
d67 1
a67 1
.PHONY: man draft
a88 2
.PHONY: html

d96 1
a96 1
ifndef DRAFT
a103 12
# The draft rule calls gmake again and sets the DRAFT variable.
# This seems to be the only way to set gmake variables in a rule.
draft:
ifndef DRAFT
ifneq ($(MAKECMDGOALS), draft)
	@@$(MAKE) DRAFT="Y" $(MAKECMDGOALS)
else
# simulate $(MAKE) with no arguments
	@@$(MAKE) DRAFT="Y" all
endif
endif

@


1.90
log
@Improve SGML build rules for non-HTML output, per Peter.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.89 2007/01/10 01:57:15 momjian Exp $
a12 1
.SECONDARY:
d99 1
d106 1
a106 1
# The draft rule calls $(MAKE) again and sets the DRAFT variable.
d151 2
a152 3

%.rtf: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print $<
d194 1
a194 1
%.fot: %.sgml $(ALLSGML) stylesheet.dsl
@


1.89
log
@In SGML Makefile, set proper targets for recursive calls.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.88 2007/01/09 22:19:36 momjian Exp $
d92 1
d100 1
a100 1
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $(MAKECMDGOALS)
d106 2
a110 2
# Call ourselves with the DRAFT value set.  This seems to be the only
# way to set gmake variables in a rule.
d113 1
a113 1
# run default 'all' rule
d118 1
d122 1
a122 2
# If HTML.index is valid, create a valid bookindex.sgml.  This 
# is required so the output has a proper index.
d127 1
d129 1
a129 1
# create HTML.index if it does not exist
d161 1
a161 1
%-A4.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl bookindex.sgml
a162 3
ifndef DRAFT
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $@@
endif
d164 1
a164 1
%-US.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl bookindex.sgml
a165 3
ifndef DRAFT
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $@@
endif
d167 1
a167 1
%-A4.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl bookindex.sgml
a168 3
ifndef DRAFT
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $@@
endif
d170 1
a170 1
%-US.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl bookindex.sgml
a171 3
ifndef DRAFT
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $@@
endif
@


1.88
log
@Build SGML documention output several times if necessary to have proper
indexes;  add 'draft' option to disable it.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.87 2007/01/07 08:49:31 petere Exp $
d99 1
a99 1
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $*
d110 1
a110 1
	@@$(MAKE) DRAFT="Y" $(MAKECMDGOALS))
d162 1
a162 1
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $*
d168 1
a168 1
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $*
d174 1
a174 1
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $*
d180 1
a180 1
	@@cmp -s HTML.index.start HTML.index || $(MAKE) $*
@


1.87
log
@Indent comments in makefiles better so they don't appear in the output.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.86 2006/12/15 16:50:07 momjian Exp $
d68 1
a68 1
.PHONY: man
d98 3
d105 6
a110 6
# If HTML.index does not exist, create a dummy bookindex.sgml.  During the
# next build, create bookindex.sgml with the proper index contents.  A proper
# bookindex.sgml is required to have an index in the output.
ifeq (,$(wildcard HTML.index))
bookindex.sgml:
	$(COLLATEINDEX) -o $@@ -N
d112 5
d118 11
a128 2
	$(COLLATEINDEX) -i 'bookindex' -o $@@ $<
endif
d161 3
d167 3
d173 3
d179 3
d323 1
a323 1
	rm -f HTML.index $(GENERATED_SGML)
@


1.86
log
@Back out double-run of PDF/PS output.  Requires building bookindex.sgml
properly.

Remove SGML docs about openjade performance patch, and instead add
comment in style sheet where indenting code is commented out.

Backpatch to 8.2.X.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.85 2006/12/15 01:20:59 momjian Exp $
d156 1
a156 1
	# multiple runs are necessary to create proper intra-document links
d167 1
a167 1
	# multiple runs are necessary to create proper intra-document links
@


1.85
log
@Run Jade twice when outputting Postscript and PDF so the index is
correct, add comments about other multiple runs in the Makefile.

Backpatch to 8.2.X.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.84 2006/12/10 20:46:03 petere Exp $
d102 3
d142 1
a142 3
%-A4.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl
	# multiple runs are necessary to create proper index entries
	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@@ $<
d145 1
a145 3
%-US.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl
	# multiple runs are necessary to create proper index entries
	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@@ $<
d148 1
a148 3
%-A4.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl
	# multiple runs are necessary to create proper index entries
	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@@ $<
d151 1
a151 3
%-US.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl
	# multiple runs are necessary to create proper index entries
	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@@ $<
d156 1
a156 1
	# multiple runs are necessary to create proper index entries
d167 1
a167 1
	# multiple runs are necessary to create proper index entries
@


1.84
log
@Make separate targets for building printable documentation in A4 and
US letter paper formats.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.83 2006/12/10 16:01:06 petere Exp $
d140 2
d145 2
d150 2
d155 2
d161 1
d172 1
@


1.83
log
@Reorganize XSLT stylesheet support.  Put common things into a separate
file (instead of repeating), add XSL-FO stylesheet and appropriate make
rules.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.82 2006/12/10 01:53:15 petere Exp $
d127 1
d137 7
a143 2
%.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o $@@ $<
d145 5
a149 2
%.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o $@@ $<
d157 1
a157 1
# Postscript from TeX
d230 1
d240 5
a244 2
%.fo: stylesheet-fo.xsl %.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) -o $@@ $^
@


1.82
log
@Generalize Texinfo rules.  Prevent them from overriding the PostScript
build rules.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.81 2006/12/02 01:26:19 petere Exp $
d210 1
a210 1
## Experimental XML stuff
d222 4
a225 2
testxml: stylesheet.xsl postgres.xml
	$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam pg.version '$(VERSION)' $^
d228 4
a231 1
	$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam pg.version '$(VERSION)' $^
d279 2
a280 2
# XML
	rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk
@


1.81
log
@Wording refinement for external references in man pages.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.80 2006/10/07 23:48:52 momjian Exp $
d228 1
d237 1
a237 1
postgres.texixml: postgres.xml
d240 9
a248 7
postgres.texi: postgres.texixml
	$(DB2X_TEXIXML) --encoding=iso-8859-1//TRANSLIT $< \
			--to-stdout > $@@

postgres.info: postgres.texi
	$(MAKEINFO) --enable-encoding --no-split \
		    --no-validate $< -o $@@
@


1.81.2.1
log
@Run Jade twice when outputting Postscript and PDF so the index is
correct, add comments about other multiple runs in the Makefile.

Backpatch to 8.2.X.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.81 2006/12/02 01:26:19 petere Exp $
a136 2
	# multiple runs are necessary to create proper index entries
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o $@@ $<
a139 2
	# multiple runs are necessary to create proper index entries
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o $@@ $<
a143 1
	# multiple runs are necessary to create proper index entries
a153 1
	# multiple runs are necessary to create proper index entries
@


1.81.2.2
log
@Back out double-run of PDF/PS output.  Requires building bookindex.sgml
properly.

Remove SGML docs about openjade performance patch, and instead add
comment in style sheet where indenting code is commented out.

Backpatch to 8.2.X.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.81.2.1 2006/12/15 01:21:08 momjian Exp $
a101 3
# If HTML.index does not exist, create a dummy bookindex.sgml.  During the
# next build, create bookindex.sgml with the proper index contents.  A proper
# bookindex.sgml is required to have an index in the output.
d139 1
d144 1
d148 1
a148 1
	# multiple runs are necessary to create proper intra-document links
d159 1
a159 1
	# multiple runs are necessary to create proper intra-document links
@


1.81.2.3
log
@Fix inappropriate comments
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.81.2.2 2006/12/15 16:50:10 momjian Exp $
d140 1
d144 1
d149 1
a149 1
# multiple runs are necessary to create proper intra-document links
d160 1
a160 1
# multiple runs are necessary to create proper intra-document links
@


1.81.2.4
log
@Split the release notes into a separate file for each (active) major branch,
as per my recent proposal.  release.sgml itself is now just a stub that should
change rarely; ideally, only once per major release to add a new include line.
Most editing work will occur in the release-N.N.sgml files.  To update a back
branch for a minor release, just copy the appropriate release-N.N.sgml
file(s) into the back branch.

This commit doesn't change the end-product documentation at all, only the
source layout.  However, it makes it easy to start omitting ancient information
from newer branches' documentation, should we ever decide to do that.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.81.2.3 2007/05/18 09:43:15 petere Exp $
d196 6
a201 2
HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
	$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
@


1.80
log
@Simplify <link> regex cleanup code.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.79 2006/10/07 23:28:04 momjian Exp $
d72 1
a72 1
fix_man_xrefs = $(PERL) -npi -e 's{\[XRef to GUC-([A-Z0-9-]*)\]}{($$l = $$1) =~ tr/A-Z-/a-z_/, $$l}ge || s{\[XRef to [A-Z0-9-]*\]}{the documentation}g'
@


1.79
log
@Allow HISTORY/history.html to be generated by removing <link> elements,
per suggestion from Peter.  Without this, the main doc links prevent
those files from being built.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.78 2006/10/05 02:04:32 momjian Exp $
d195 1
a195 1
	$(PERL) -p -0 -e 's/<link[\n\s]+linkend[^>]*>//sg' | \
@


1.78
log
@Update DB2X texinfo example code.

Andreas Seltenreich
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.77 2006/10/03 21:13:17 momjian Exp $
d191 1
d194 3
a196 1
	  cat $< ) >tempfile_HISTORY.sgml
@


1.77
log
@Add experimental support for db2x texinfo

Andreas Seltenreich
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.76 2006/04/06 18:54:36 petere Exp $
d234 1
a234 1
	$(DB2X_XSLTPROC) -s texi $< -o $@@
@


1.76
log
@Build src/test/regress/README during tarball making like the other
generated text files.  Fix build of that file, too.

Put the text files in the right place during make dist, so there are no
extra manual steps required anymore.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.75 2005/01/04 21:03:30 petere Exp $
d215 1
a215 1
	  sed -e 's/\[\(lt\|gt\|amp\|nbsp\|copy\|quot\|ouml\|uuml\|egrave\) *\]/\&\1;/g' \
d225 18
d270 2
@


1.75
log
@Add some post-processing to the man page generation to fix up external/
dangling cross-references.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.74 2004/11/23 21:41:24 petere Exp $
d199 2
a200 1
	  echo '<!entity % standalone-ignore "IGNORE"> ]>'; \
@


1.75.4.1
log
@Split the release notes into a separate file for each (active) major branch,
as per my recent proposal.  release.sgml itself is now just a stub that should
change rarely; ideally, only once per major release to add a new include line.
Most editing work will occur in the release-N.N.sgml files.  To update a back
branch for a minor release, just copy the appropriate release-N.N.sgml
file(s) into the back branch.

This commit doesn't change the end-product documentation at all, only the
source layout.  However, it makes it easy to start omitting ancient information
from newer branches' documentation, should we ever decide to do that.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.75 2005/01/04 21:03:30 petere Exp $
d191 3
a193 2
HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
	$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
@


1.75.6.1
log
@Split the release notes into a separate file for each (active) major branch,
as per my recent proposal.  release.sgml itself is now just a stub that should
change rarely; ideally, only once per major release to add a new include line.
Most editing work will occur in the release-N.N.sgml files.  To update a back
branch for a minor release, just copy the appropriate release-N.N.sgml
file(s) into the back branch.

This commit doesn't change the end-product documentation at all, only the
source layout.  However, it makes it easy to start omitting ancient information
from newer branches' documentation, should we ever decide to do that.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.75 2005/01/04 21:03:30 petere Exp $
d191 3
a193 2
HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
	$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
@


1.74
log
@Clean files generated by htmlhelp target.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.73 2004/11/23 16:27:59 petere Exp $
d72 2
d78 1
@


1.73
log
@Add htmlhelp stylesheet and build target.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.72 2004/03/09 20:10:10 momjian Exp $
d246 2
@


1.72
log
@Remove blank line in Makefile.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.71 2004/03/09 20:08:10 momjian Exp $
d218 3
@


1.71
log
@Add HISTORY/INSTALL clean target to 7.4.X.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.70 2004/03/08 23:59:23 momjian Exp $
a242 1

@


1.70
log
@Have SGML make clean remove text files output as well
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.69 2004/03/06 02:52:46 momjian Exp $
d243 1
@


1.69
log
@Use lynx -stdin and regenerate HISTORY
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.68 2004/03/05 19:50:55 momjian Exp $
d241 2
@


1.68
log
@Oops, '-' doesn't work for my lynx either.

Change back to /dev/stdin, even though it isn't portable.  Let's wait for
someone to complain they don't have /dev/stdin.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.67 2004/03/05 19:48:03 momjian Exp $
d183 1
a183 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist /dev/stdin >$@@
@


1.67
log
@Use '-' for stdin on lynx, my lynx version doesn't support -stdin.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.66 2004/03/02 00:03:02 tgl Exp $
d183 1
a183 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist - >$@@
@


1.66
log
@Replace unportable use of /dev/stdin with lynx's -stdin switch.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.65 2004/03/01 16:08:58 neilc Exp $
d183 1
a183 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin >$@@
@


1.65
log
@Enable some additional warnings when running openjade and onsgmls.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.64 2004/01/15 23:51:32 petere Exp $
d183 1
a183 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist /dev/stdin >$@@
@


1.64
log
@Some refinement of XSLT processing: The result now looks just about as good
as the result of the SGML-based tool chain.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.63 2004/01/13 18:45:19 petere Exp $
d61 2
d91 1
a91 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-html -t sgml $<
d225 1
a225 1
	$(NSGMLS) $(SGMLINCLUDE) -s $<
@


1.63
log
@Make rule and stylesheet to try out XSLT for DocBook processing
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.62 2003/12/15 22:24:59 momjian Exp $
d208 4
a211 1
	$(OSX) -x lower $< >$@@
d214 1
a214 1
	$(XSLTPROC) $^
@


1.62
log
@Update HISTORY and release notes for 7.4.1.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.61 2003/12/11 22:10:51 petere Exp $
d198 14
@


1.61
log
@Fix for vpath build
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/doc/src/sgml/Makefile,v 1.60 2003/11/29 19:51:36 pgsql Exp $
d187 1
a187 1
	( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V3.1//EN">'; \
d193 1
a193 1
	( echo '<!doctype chapter PUBLIC "-//OASIS//DTD DocBook V3.1//EN" ['; \
@


1.60
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d5 1
a5 1
# $PostgreSQL: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.59 2003/08/31 17:28:39 petere Exp $
d25 7
d90 3
@


1.59
log
@Set LC_ALL=C when running collateindex.pl to get predictable sort order.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.58 2003/08/27 22:58:54 petere Exp $
@


1.59.2.1
log
@Replace unportable use of /dev/stdin with lynx's -stdin switch.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.59 2003/08/31 17:28:39 petere Exp $
d171 1
a171 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin >$@@
@


1.59.2.2
log
@Add HISTORY/INSTALL clean target to 7.4.X.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.59.2.1 2004/03/02 00:03:08 tgl Exp $
a211 3
# text
	rm -f INSTALL HISTORY regress_README

@


1.59.2.3
log
@Remove blank line in Makefile.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.59.2.2 2004/03/09 20:08:21 momjian Exp $
d214 1
@


1.59.2.4
log
@Split the release notes into a separate file for each (active) major branch,
as per my recent proposal.  release.sgml itself is now just a stub that should
change rarely; ideally, only once per major release to add a new include line.
Most editing work will occur in the release-N.N.sgml files.  To update a back
branch for a minor release, just copy the appropriate release-N.N.sgml
file(s) into the back branch.

This commit doesn't change the end-product documentation at all, only the
source layout.  However, it makes it easy to start omitting ancient information
from newer branches' documentation, should we ever decide to do that.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.59.2.3 2004/03/09 20:10:19 momjian Exp $
d176 3
a178 2
HISTORY.html: generate_history.pl $(wildcard $(srcdir)/release*.sgml)
	$(PERL) $< "$(srcdir)" release.sgml >tempfile_HISTORY.sgml
@


1.58
log
@Add "override" for make variable JADEFLAGS, since upper directory passes
this variable on the command line.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.57 2003/04/10 01:22:44 petere Exp $
d85 1
a85 1
COLLATEINDEX := $(PERL) $(COLLATEINDEX) -f -g
@


1.57
log
@In an effort to reduce the total number of chapters, combine the small
chapters on extending types, operators, and aggregates into the extending
functions chapter.  Move the information on how to call table functions
into the queries chapter.  Remove some outdated information that is
already present in a better form in other parts of the documentation.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.56 2003/03/25 16:15:35 petere Exp $
d51 1
a51 1
JADEFLAGS += -V draft-mode
@


1.57.2.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.59 2003/08/31 17:28:39 petere Exp $
d51 1
a51 1
override JADEFLAGS += -V draft-mode
d85 1
a85 1
COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g
@


1.56
log
@Merge documentation into one book.  (Build with "make html".)  Replace
vague cross-references with real links.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.55 2003/01/14 23:19:34 petere Exp $
d80 1
a80 1
html: postgres.sgml $(ALLSGML) stylesheet.dsl catalogs.gif connections.gif
a116 2
postgres.rtf: catalogs.gif connections.gif

a123 2
postgres.tex-ps: catalogs.eps connections.eps

a125 2

postgres.tex-pdf: catalogs.pdf connections.pdf
@


1.55
log
@Add sql_features table to information schema.  Generate the features list
in the documentation from that same data.
@
text
@d3 1
a3 3
# Makefile
#	Postgres documentation makefile
#	Thomas Lockhart
d5 1
a5 5
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.54 2002/11/26 19:22:16 momjian Exp $
d23 1
a23 1
SGMLINCLUDE = -D $(srcdir) -D $(srcdir)/ref
a35 1

a36 5

ifndef D2MDIR
# This is where the (patched) docbook2man perl scripts reside on hub.org.
D2MDIR= /home/users/t/thomas/d2x/docbook2man
endif
a38 3
vpath %.sgml ./ref

ALLBOOKS = admin developer programmer reference tutorial user
d40 1
a40 1
GENERATED_SGML = bookindex.sgml setindex.sgml version.sgml \
d63 2
a64 3
man: $(ALLSGML)
	$(NSGMLS) $(NSGMLS_FLAGS) $(srcdir)/book-decl.sgml $(srcdir)/reference.sgml \
	  | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
d66 1
a66 2
	$(NSGMLS) $(NSGMLS_FLAGS) $(srcdir)/book-decl.sgml $(srcdir)/reference.sgml \
	  | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
d76 1
a76 1
JADE.html = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-html -t sgml
d78 1
a78 4
postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl
	@@rm -f *.html
	$(JADE.html) $<
	ln -sf index.html $@@
d80 1
a80 1
$(addsuffix .html, $(ALLBOOKS)): %.html: %.sgml $(ALLSGML) stylesheet.dsl
d82 1
a82 2
	$(JADE.html) book-decl.sgml $<
	ln -sf index.html $@@
a83 2
programmer.html: catalogs.gif connections.gif
postgres.html: catalogs.gif connections.gif
d85 1
a85 2

COLLATEINDEX := $(PERL) $(COLLATEINDEX) -f -g -t 'Index'
a89 3

setindex.sgml:
	$(COLLATEINDEX) -x -o $@@ -N
a92 3

setindex.sgml: HTML.index
	$(COLLATEINDEX) -i 'setindex' -x -o $@@ $<
d113 5
a117 2
$(addsuffix .rtf, $(ALLBOOKS)): %.rtf: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print book-decl.sgml $<
d123 2
a124 2
$(addsuffix .tex-ps, $(ALLBOOKS)): %.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o $@@ book-decl.sgml $<
d126 1
a126 1
programmer.tex-ps: catalogs.eps connections.eps
d128 2
a129 2
$(addsuffix .tex-pdf, $(ALLBOOKS)): %.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o $@@ book-decl.sgml $<
d131 1
a131 1
programmer.tex-pdf: catalogs.pdf connections.pdf
d153 2
a154 2
$(addsuffix .fot, $(ALLBOOKS)): %.fot: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t fot -i output-print -o $@@ book-decl.sgml $<
a199 2
check: $(addprefix check-, $(ALLBOOKS)) check-postgres

d201 1
a201 4
$(addprefix check-, $(ALLBOOKS)): check-%: %.sgml $(ALLSGML)
	$(NSGMLS) $(SGMLINCLUDE) -s book-decl.sgml $<

check-postgres: postgres.sgml $(ALLSGML)
@


1.54
log
@Update build rules for /HISTORY.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.53 2002/11/11 20:06:00 petere Exp $
d55 4
a58 1
ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) bookindex.sgml setindex.sgml version.sgml
d131 6
d230 1
a230 1
$(addprefix check-, $(ALLBOOKS)): check-%: %.sgml bookindex.sgml
d233 1
a233 1
check-postgres: postgres.sgml setindex.sgml
d249 1
a249 1
	rm -f HTML.index bookindex.sgml setindex.sgml version.sgml
@


1.53
log
@Merge release note updates from 7.3 branch.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.52 2002/10/12 16:34:28 petere Exp $
d195 1
a195 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -dump -nolist -stdin >$@@
@


1.52
log
@Compute version number for docs on the fly.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.51 2002/08/05 19:43:30 petere Exp $
d192 1
d195 1
a195 4
	@@echo "|";\
	 echo "| You should now take '$<', save it as a text file in Netscape,";\
	 echo "| and put it in place of the existing '$@@' file.";\
	 echo "|"
@


1.52.2.1
log
@Improve formatting of release notes.  Update makefile rule to make
HISTORY file.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.52 2002/10/12 16:34:28 petere Exp $
a191 1
LYNX = lynx
d194 4
a197 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -dump -nolist -stdin >$@@
@


1.52.2.2
log
@Update build rules for /HISTORY.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.53 2002/11/11 20:06:00 petere Exp $
d195 1
a195 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist /dev/stdin >$@@
@


1.52.2.3
log
@Replace unportable use of /dev/stdin with lynx's -stdin switch.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.52.2.2 2002/11/26 19:22:40 momjian Exp $
d195 1
a195 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin >$@@
@


1.51
log
@Add User's Guide chapters on Data Definition and Data Manipulation.
Still needs to be filled with more information, but it gives us a
framework to have a User's Guide with complete coverage of the basic
SQL operations.  Move arrays into data type chapter, inheritance into
DDL chapter (for now).

Make <comment>s show up in the output while the version number ends in
"devel".

Allow cross-book references with entities &cite-user; etc.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql-server/doc/src/sgml/Makefile,v 1.50 2002/04/14 17:23:20 petere Exp $
d55 1
a55 1
ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) bookindex.sgml setindex.sgml
d122 6
d199 2
a200 2
INSTALL.html: standalone-install.sgml installation.sgml
	$(JADE.text) -V nochunks $+ >$@@
d242 1
a242 1
	rm -f HTML.index bookindex.sgml setindex.sgml
@


1.50
log
@Allow detection of collateindex.pl in stylesheet directory or in path,
which covers some recent installation schemes.

Add Mandrake installation layout to directories to check for stylesheets.

Allow documentation build to proceed if stylesheets were not found, in case
the stylesheets might be found through the SGML catalog mechanism.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.49 2002/01/30 21:54:17 petere Exp $
d59 5
@


1.49
log
@Remove Jade/TeX hack, now that OpenJade 1.3.1 has it fixed.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.48 2001/12/21 03:53:04 thomas Exp $
d22 2
a23 6
ifndef DOCBOOKSTYLE
DOCBOOKSTYLE = /home/projects/pgsql/developers/thomas/db162.d/docbook
endif

ifndef DOCBOOKINDEX
  DOCBOOKINDEX = $(DOCBOOKSTYLE)/bin/collateindex.pl
d57 3
a59 1
CATALOG = $(DOCBOOKSTYLE)/catalog
d85 1
a85 1
JADE.html = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -c $(CATALOG) -d stylesheet.dsl -i output-html -t sgml
d101 1
a101 1
COLLATEINDEX = $(PERL) $(DOCBOOKINDEX) -f -g -t 'Index'
a104 3
ifeq (,$(wildcard $(COLLATEINDEX)))
	touch $@@
else
a105 1
endif
a107 3
ifeq (,$(wildcard $(COLLATEINDEX)))
	touch $@@
else
a108 1
endif
d124 1
a124 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -c $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print book-decl.sgml $<
d131 1
a131 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -c $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o $@@ book-decl.sgml $<
d136 1
a136 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -c $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o $@@ book-decl.sgml $<
d161 1
a161 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -c $(CATALOG) -d stylesheet.dsl -t fot -i output-print -o $@@ book-decl.sgml $<
d180 1
a180 1
JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -c $(CATALOG) -d stylesheet.dsl -i output-text -t sgml
d212 1
a212 1
$(addprefix check-, $(ALLBOOKS)): check-%: %.sgml
d215 1
a215 1
check-postgres: postgres.sgml
@


1.49.2.1
log
@Stamp release 7.2.7.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.49 2002/01/30 21:54:17 petere Exp $
a42 4
ifndef LYNX
LYNX = lynx
endif

d193 4
a196 1
	$(PERL) -p -e 's/<H(1|2)$$/<H\1 align=center/g' $< | $(LYNX) -force_html -dump -nolist -stdin >$@@
@


1.48
log
@Allow location of index creation perl script be be specified in
 Makefile.custom, to allow finding it on Mandrake systems (at least).
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.47 2001/12/10 13:07:16 petere Exp $
a141 6
# TeX transforms '--' into en-dashes.  This hack should go away when
# OpenJade is fixed (ver. 1.4?)
	$(PERL) -pi -e 's/\-\-/\\mbox{}-\\mbox{}-\\mbox{}/g' $@@
	$(PERL) -pi -e 's/\<\</\\mbox{}<\\mbox{}<\\mbox{}/g' $@@
	$(PERL) -pi -e 's/\>\>/\\mbox{}>\\mbox{}>\\mbox{}/g' $@@
	$(PERL) -pi -e "s/\'\'/\\\\mbox{}'\\\\mbox{}'\\\\mbox{}/g" $@@
a146 4
	$(PERL) -pi -e 's/\-\-/\\mbox{}-\\mbox{}-\\mbox{}/g' $@@
	$(PERL) -pi -e 's/\<\</\\mbox{}<\\mbox{}<\\mbox{}/g' $@@
	$(PERL) -pi -e 's/\>\>/\\mbox{}>\\mbox{}>\\mbox{}/g' $@@
	$(PERL) -pi -e "s/\'\'/\\\\mbox{}'\\\\mbox{}'\\\\mbox{}/g" $@@
@


1.47
log
@Revert breakage
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.46 2001/12/08 03:24:21 thomas Exp $
d26 4
d103 1
a103 1
COLLATEINDEX = $(PERL) $(DOCBOOKSTYLE)/bin/collateindex.pl -f -g -t 'Index'
@


1.46
log
@Update list of currently supported platforms.
Mention SQL9x precision syntax for date/time types.
Use PostgreSQL consistantly throughout docs. Before, usage was split evenly
 between Postgres and PostgreSQL.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.45 2001/11/18 20:35:02 petere Exp $
d99 1
a99 2
#COLLATEINDEX = $(PERL) $(DOCBOOKSTYLE)/bin/collateindex.pl -f -g -t 'Index'
COLLATEINDEX = $(PERL) /usr/bin/collateindex.pl -f -g -t 'Index'
@


1.45
log
@Initial round of tweakage for man pages
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.44 2001/11/16 16:29:56 petere Exp $
d99 2
a100 1
COLLATEINDEX = $(PERL) $(DOCBOOKSTYLE)/bin/collateindex.pl -f -g -t 'Index'
d104 3
d108 2
d111 3
d115 1
d119 1
@


1.44
log
@Use -f for rm.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.43 2001/11/08 23:46:29 petere Exp $
d70 1
a70 1
	  | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION)
d73 1
a73 1
	  | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION)
@


1.43
log
@Support for images in jadetex and pdfjadetex.  Formatting improvements for
lists, bibliography, index, page numbering.  Add comments.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.42 2001/10/09 18:45:59 petere Exp $
d147 1
a147 1
	@@rm $*.aux $*.log
d157 1
a157 1
	@@rm $*.aux $*.log $*.out
@


1.42
log
@Bunch of copy fitting and style sheet tweakage to get decent looking print
output (from pdfjadetex).  Also updated instructions to install documentation
processing toolchain.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.41 2001/10/04 22:25:48 petere Exp $
d29 1
a29 1
SGMLINCLUDE = -D $(srcdir) -D $(srcdir)/ref -D $(srcdir)/../graphics
d39 3
a94 1
tutorial.html: clientserver.gif
d96 1
a96 1
postgres.html: clientserver.gif catalogs.gif connections.gif
d122 6
a127 3
# TeX and DVI
$(addsuffix .tex, $(ALLBOOKS)): %.tex: %.sgml $(ALLSGML) stylesheet.dsl
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -c $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print book-decl.sgml $<
d135 13
a147 1
%.dvi: %.tex
d156 2
a157 1
%.pdf: %.tex
d163 7
d175 6
d235 1
a235 1
	rm -f *.rtf *.tex *.dvi *.aux *.log *.ps *.pdf *.out
@


1.41
log
@Hack for Jade vs TeX interpretation of "--"
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.40 2001/09/21 18:37:05 petere Exp $
d126 3
@


1.40
log
@Readd test/regress/README file, this time with a well-defined and simple
rule to remake it when necessary.
@
text
@d11 1
a11 1
#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.39 2001/09/18 12:08:26 petere Exp $
d123 3
d201 1
a201 1
	rm -f *.rtf *.tex *.dvi *.aux *.log *.ps *.pdf
@


1.39
log
@Generate index.html as the root file name of the documentation set,
rather than making index.html a symlink to the autogenerated name.
Fixes fatal problems with tar programs that don't handle symlinks
very well (MacOS X).

(The names user.html, admin.html, etc. are still available as make
targets, but they aren't packaged anymore.)

Use the manifest file that the stylesheets generate as the file list
for packaging.  Put graphics in the right place while building, not
while packaging, so you can actually look at them after building.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.38 2001/08/29 19:14:39 petere Exp $
d151 1
a151 1
INSTALL HISTORY: % : %.html
d153 2
a154 2
	 echo "| You should now take \`$<', save it as a text file in Netscape,";\
	 echo "| and put it in place of the existing \`$@@' file.";\
d165 7
@


1.38
log
@Install the SQL command man pages into a section appropriate for each
system.  Some systems did not understand the 'l' section, and in general
it wasn't entirely appropriate.

On SCO OpenServer, the man pages won't be installed at all until someone
figures out their man system.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.37 2001/05/12 22:51:34 petere Exp $
d85 1
a85 1
	ln -sf $@@ index.html
d90 6
a95 1
	ln -sf $@@ index.html
d142 1
a142 1
	cp -p ../graphics/$@@ .
d187 1
a187 1
	rm -f HTML.manifest *.html
@


1.37
log
@Add index.  Only some parts of the manual set have index entries so far...
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.36 2001/04/20 15:52:33 thomas Exp $
d63 1
a63 1
DEFAULTSECTION := l
@


1.36
log
@Final markup for 7.1 hardcopy release. Mostly typo and table-fitting
 adjustments. Note that many tables are being abused with *really* long
 description columns. Should probably shrink those columns to be more
 concise, and move some of the info to follow-on reference notes.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.35 2001/03/25 08:32:24 petere Exp $
d52 1
a52 1
ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml)
d54 1
a54 8

catalog: Makefile $(top_builddir)/src/Makefile.global
	(echo "PUBLIC \"-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN\" \"$(DOCBOOKSTYLE)/html/docbook.dsl\""; \
	echo "PUBLIC \"-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN\" \"$(DOCBOOKSTYLE)/print/docbook.dsl\"") > $@@

ifeq "$(origin DOCBOOKSTYLE)" "command line"
.PHONY: catalog
endif
d80 1
a80 1
JADE.html = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d stylesheet.dsl -i output-html -t sgml
d82 1
a82 1
postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl catalog
d87 1
a87 1
$(addsuffix .html, $(ALLBOOKS)): %.html: %.sgml $(ALLSGML) stylesheet.dsl catalog
d92 14
d112 2
a113 2
$(addsuffix .rtf, $(ALLBOOKS)): %.rtf: %.sgml $(ALLSGML) stylesheet.dsl catalog
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print book-decl.sgml $<
d116 2
a117 2
$(addsuffix .tex, $(ALLBOOKS)): %.tex: %.sgml $(ALLSGML) stylesheet.dsl catalog
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d stylesheet.dsl -t tex -V tex-backend -i output-print book-decl.sgml $<
d144 1
a144 1
JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d stylesheet.dsl -i output-text -t sgml
a180 1
	rm -f catalog
d187 2
@


1.35
log
@Allow building documentation outside source tree.
from Ian Lance Taylor
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.34 2001/03/10 16:05:35 petere Exp $
d23 1
a23 1
DOCBOOKSTYLE = /home/projects/pgsql/developers/thomas/db143.d/docbook
@


1.34
log
@Eliminate some hackery when creating text files (INSTALL) with a few lines
of DSSSL.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.33 2001/03/06 20:41:06 petere Exp $
d29 1
a29 1
SGMLINCLUDE = -D ref -D ../graphics
@


1.33
log
@Sync rule for making INSTALL file.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.32 2001/02/13 21:51:17 petere Exp $
d137 2
d145 2
d148 5
a152 16
INSTALL.html HISTORY.html: %.html : tempfile_%.html
	sed 's/Chapter 1. *//g' $< >$@@

tempfile_INSTALL.html tempfile_HISTORY.html: tempfile_%.html : tempfile_%.sgml
	$(JADE.html) -V nochunks $< >$@@


tempfile_INSTALL.sgml: standalone-install.sgml installation.sgml
	cat $+ >$@@

tempfile_HISTORY.sgml: release.sgml
	( echo '<!doctype chapter PUBLIC "-//OASIS//DTD DocBook V3.1//EN">'; \
	  cat $< ) >$@@


.INTERMEDIATE: tempfile_INSTALL.html tempfile_HISTORY.html tempfile_INSTALL.sgml tempfile_HISTORY.sgml
@


1.32
log
@Didn't work when Makefile.custom is missing.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.31 2001/02/13 21:27:05 petere Exp $
d148 1
a148 1
	$(JADE) $(JADEFLAGS) -d $(HDSL) -V nochunks -t sgml $< >$@@
@


1.31
log
@Custom DSSSL stylesheet.  Style changes included here:
HTML:
* make .html the default extension
* allow use of CSS stylesheet ("stylesheet.css", not included)
* make <set> TOC two levels deep
* put time of creation into meta header
Print:
* make print output justified by default
* footnotes at bottom of each page
* allow TeX to hyphenate
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.30 2001/02/04 12:23:11 petere Exp $
d55 1
a55 1
catalog: Makefile $(top_builddir)/src/Makefile.global $(top_builddir)/src/Makefile.custom
@


1.30
log
@Must run jadetex three times to get correct page numbers.  Add support for
pdfjadetex.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.29 2001/02/03 19:03:26 petere Exp $
a25 10
ifndef HSTYLE
HSTYLE = $(DOCBOOKSTYLE)/html
endif
ifndef PSTYLE
PSTYLE = $(DOCBOOKSTYLE)/print
endif

HDSL=$(HSTYLE)/docbook.dsl
PDSL=$(PSTYLE)/docbook.dsl

d55 9
d87 1
a87 1
JADE.html = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(HDSL) -V %use-id-as-filename% -V %generate-legalnotice-link% -t sgml
d89 2
a90 2
postgres.html: postgres.sgml $(ALLSGML)
	@@rm -f *.htm
d92 1
a92 3
# Include some softlinks to the generic default file names
	ln -sf postgres.htm index.html
	ln -sf postgres.htm postgres.html
d94 2
a95 2
$(addsuffix .html, $(ALLBOOKS)): %.html: %.sgml $(ALLSGML)
	@@rm -f *.htm
d97 1
a97 2
	ln -sf $*.htm index.html
	ln -sf $*.htm $*.html
d105 2
a106 2
$(addsuffix .rtf, $(ALLBOOKS)): %.rtf: %.sgml $(ALLSGML)
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(PDSL) -t rtf -V rtf-backend book-decl.sgml $<
d109 2
a110 2
$(addsuffix .tex, $(ALLBOOKS)): %.tex: %.sgml $(ALLSGML)
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(PDSL) -t tex -V tex-backend book-decl.sgml $<
d181 1
d183 1
a183 1
	rm -f HTML.manifest *.html *.htm
d185 1
a185 1
	rm -rf *.1 *.l man1 manl manpage.refs manpage.links manpage.log
@


1.29
log
@Update, polish, consistencify preface/intro sections.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.28 2001/01/06 16:54:16 petere Exp $
d110 1
a110 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(PDSL) -t rtf book-decl.sgml $<
d114 1
a114 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(PDSL) -t tex book-decl.sgml $<
d119 1
d124 6
@


1.28
log
@Simplify rules to build man pages so they run a lot faster and create less
noise.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.27 2000/12/14 22:30:56 petere Exp $
d88 1
a88 1
JADE.html = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(HDSL) -V %use-id-as-filename% -t sgml
@


1.27
log
@Merge functions and operators chapters.  Lots of updates.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.26 2000/11/24 17:44:21 petere Exp $
d20 1
a63 54
MANSOURCES= $(wildcard ref/*.sgml)

APPLICATIONS= createdb.sgml createlang.sgml createuser.sgml \
	dropdb.sgml droplang.sgml dropuser.sgml \
	ecpg-ref.sgml \
	initdb.sgml initlocation.sgml \
	ipcclean.sgml \
	pg_dump.sgml \
	pg_dumpall.sgml \
	pg_passwd.sgml \
	pg_upgrade.sgml \
	pgaccess-ref.sgml \
	pgadmin-ref.sgml \
	pg_config-ref.sgml \
	pg_ctl-ref.sgml \
	pgtclsh.sgml \
	pgtksh.sgml \
	postgres-ref.sgml \
	postmaster.sgml \
	psql-ref.sgml \
	vacuumdb.sgml

COMMANDS= abort.sgml alter_group.sgml alter_table.sgml alter_user.sgml \
	begin.sgml \
	close.sgml cluster.sgml comment.sgml commit.sgml copy.sgml \
	create_aggregate.sgml create_constraint.sgml create_database.sgml \
	create_function.sgml create_group.sgml \
	create_index.sgml \
	create_language.sgml create_operator.sgml create_rule.sgml create_sequence.sgml \
	create_table.sgml create_table_as.sgml create_trigger.sgml create_type.sgml \
	create_user.sgml create_view.sgml \
	declare.sgml delete.sgml \
	drop_aggregate.sgml drop_database.sgml drop_function.sgml drop_group.sgml \
	drop_index.sgml \
	drop_language.sgml drop_operator.sgml drop_rule.sgml drop_sequence.sgml \
	drop_table.sgml drop_trigger.sgml drop_type.sgml drop_user.sgml drop_view.sgml \
	end.sgml explain.sgml fetch.sgml grant.sgml \
	insert.sgml listen.sgml load.sgml lock.sgml move.sgml \
	notify.sgml \
	reindex.sgml reset.sgml revoke.sgml rollback.sgml \
	select.sgml select_into.sgml set.sgml set_constraints.sgml set_transaction.sgml show.sgml \
	truncate.sgml unlisten.sgml update.sgml vacuum.sgml

FUNCTIONS= current_date.sgml current_time.sgml current_timestamp.sgml current_user.sgml

#APPSOURCES= $(addprefix ref/, $(APPLICATIONS))
#SQLSOURCES= $(addprefix ref/, $(COMMANDS))
APPSOURCES= $(APPLICATIONS)
SQLSOURCES= $(COMMANDS)
XAPPTARGETS= $(APPLICATIONS:.sgml=.1)
APPTARGETS= $(XAPPTARGETS:-ref.1=.1)
XSQLTARGETS= $(COMMANDS:.sgml=.l)
SQLTARGETS= $(XSQLTARGETS:-ref.l=.l)

d69 3
a71 1
.PHONY: man man1 manl
d73 9
a81 29
man:
	$(MAKE) man1 manl
	rm -r *.1 *.l man1 manl
	$(MAKE) man1 manl

manpage.refs:
	$(MAKE) man

man1: $(APPTARGETS) manpage.refs
	rm -rf man1
	if [ ! -d man1 ]; then mkdir man1; fi
	cp *.1 man1/

manl: $(SQLTARGETS) manpage.refs
	rm -rf manl/*
	if [ ! -d manl ]; then mkdir manl; fi
	cp *.l manl/

%.1: %-ref.sgml
	$(NSGMLS) $(NSGMLS_FLAGS) refentry.sgml $< \
	| $(SGMLSPL) $(D2MSCRIPT) --lowercase --section 1

%.1: %.sgml
	$(NSGMLS) $(NSGMLS_FLAGS) refentry.sgml $< \
	| $(SGMLSPL) $(D2MSCRIPT) --lowercase --section 1

%.l: %.sgml
	$(NSGMLS) $(NSGMLS_FLAGS) refentry.sgml $< \
	| $(SGMLSPL) $(D2MSCRIPT) --lowercase --section l
@


1.26
log
@Revive Reference Manual, remove reference pages from User's Guide.

Make version.sgml the central place for updating version numbers in the
documentation.  Document titles now contain the version number of the
release they belong to.

filelist.sgml is the central (and only) place to declare system entities
(i.e., sgml files).  No longer a need to declare them in each document
header.

There is no longer any need to maintain duplicate chapter lists in
postgres.sgml and user/admin/etc.sgml, everything is build from the same
sources.  Some parameter entities allow for different text to be included
when the integrated or a single doc set is generated, which eliminates the
problems that had caused this to fail in the past.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.25 2000/11/05 21:04:06 petere Exp $
d19 1
@


1.25
log
@Add some configure checks for DocBook and related tools.  With a somewhat
standard installation layout it should be possible to build the HTML
and print documentation without additional manual setup.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.24 2000/10/17 15:26:39 petere Exp $
d58 1
a58 1
ALLDOCUMENTS = admin user programmer developer tutorial postgres
d158 3
a160 1
%.html: %.sgml $(ALLSGML)
d162 1
a162 1
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(HDSL) -V %use-id-as-filename% -t sgml $<
d164 6
d179 2
a180 2
%.rtf: %.sgml
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(PDSL) -t rtf $<
d183 2
a184 2
%.tex: %.sgml
	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d $(PDSL) -t tex $<
d233 1
a233 1
check: $(addprefix check-, $(ALLDOCUMENTS))
d236 4
a239 1
check-%: %.sgml
@


1.24
log
@* doc/src/sgml/regress.sgml: Update for new driver script.

* doc/src/sgml/installation.sgml: ditto.

* src/test/regress/README: Regenerate.

* doc/src/sgml/docguide.sgml: Explain how it was done.  Explain how
INSTALL and HISTORY are (now) generated.

* doc/src/sgml/Makefile: Implement HISTORY generation to be analoguous
to INSTALL.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.23 2000/10/10 22:01:50 momjian Exp $
a14 3
# Pick up Makefile.global from the source area
# This is the only resource from the code source area and is optional.
# Actually, we want this to get Makefile.custom - thomas 1998-03-01
d17 1
a17 1
-include $(top_builddir)/src/Makefile.global
d20 4
a23 7
# This is where the default stylesheets appear on my linux system.
# Probably no need to change this; rather, put definitions
#  for HSTYLE and PSTYLE and/or for HDSL and PDSL
#  in Makefile.custom in your code src directory.
#HSTYLE=/usr/lib/sgml/stylesheets/nwalsh-modular/html
#PSTYLE=/usr/lib/sgml/stylesheets/nwalsh-modular/print
# This is where the production stylesheets appear on postgresql.org
d25 1
a25 1
HSTYLE= /home/projects/pgsql/developers/thomas/db143.d/docbook/html
d28 1
a28 1
PSTYLE= /home/projects/pgsql/developers/thomas/db143.d/docbook/print
d34 12
a45 1
# Options for DocBook style sheets
a46 6
DBOPTS= -D ref -D ../graphics
#DBOPTS+= -V %no-split-output% -V %no-make-index%
# use-id-as-filename picks up the "Id=" fields to use as file names.
# If this is omitted then file names are generic "c01.htm"
#  as in v6.3 documentation. Yuck.
DBOPTS+= -V %use-id-as-filename%
d49 2
a51 1

d53 1
d56 1
a56 1
TAR= tar
d58 1
a58 8
# Hmm, made this optional but jade _really_ doesn't like them missing
# - thomas 1998-03-01
ifneq ($(HDSL), )
HTMLOPTS= -d $(HDSL)
endif
ifneq ($(PDSL), )
PRINTOPTS= -d $(PDSL)
endif
d60 1
a60 1
vpath %.sgml ./ref
a115 2
.PRECIOUS: postgres.tex postgres.dvi
.PHONY: install all clean distclean
d117 3
a119 1
install:
d121 1
a121 1
all:
d125 1
a125 1
	($(RM) -r *.1 *.l man1 manl)
d132 1
a132 1
	$(RM) -rf man1
d137 1
a137 1
	$(RM) -rf manl/*
a140 10
clean:
	(rm -rf HTML.manifest *.html *.htm *.1 *.l man1 manl manpage*)

distclean:
	$(MAKE) clean

#
# Generic production rules
#

d142 2
a143 2
	nsgmls $(NSGMLS_FLAGS) refentry.sgml $< \
	| sgmlspl $(D2MSCRIPT) --lowercase --blockformat --section 1
d146 2
a147 2
	nsgmls $(NSGMLS_FLAGS) refentry.sgml $< \
	| sgmlspl $(D2MSCRIPT) --lowercase --blockformat --section 1
d150 7
a156 2
	nsgmls $(NSGMLS_FLAGS) refentry.sgml $< \
	| sgmlspl $(D2MSCRIPT) --lowercase --blockformat --section l
d158 3
a160 1
# HTML
d162 3
d166 3
a168 5
%.html:	%.sgml #$(HDSL)
	(rm -rf *.htm)
	jade $(DBOPTS) $(HTMLOPTS) -t sgml $<
	(ln -sf $*.htm index.html)
	(ln -sf $*.htm $*.html)
d171 2
a172 4
# This is used for v6.3 docs

%.rtf: %.sgml #$(PDSL)
	jade $(DBOPTS) $(PRINTOPTS) -t rtf $<
d175 2
a176 3

%.tex: %.sgml #$(PDSL)
	jade $(DBOPTS) $(PRINTOPTS) -t tex $<
a182 1

d192 3
a194 3
#
# Semi-automatic generation of some text files.
#
d207 1
a207 1
	jade -d $(HDSL) -V nochunks -t sgml $< >$@@
d219 24
@


1.23
log
@Rename pg-config to pg_config to be consistent with other pg commands.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.22 2000/10/05 19:48:16 momjian Exp $
d204 5
a208 4
# Generation of the INSTALL text file. Not fully automated, but better
# than nothing.
.PHONY: INSTALL
INSTALL: INSTALL.html
d211 1
a211 1
	 echo "| and put it in place of the existing \`INSTALL' file.";\
a212 1
	@@rm -f tempfile.html tempfile.sgml
a213 2
INSTALL.html: tempfile.html
	sed -e 's/Chapter 1. *//g' < $< > $@@
d215 14
a228 2
tempfile.html: tempfile.sgml
	jade -d $(HDSL) -V nochunks -t sgml $< > $@@
d230 1
a230 2
tempfile.sgml: standalone-install.sgml installation.sgml
	cat $+ > $@@
@


1.22
log
@Add proofreader's changes to docs.
Fix misspelling of disbursion to dispersion.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.21 2000/10/05 16:57:23 petere Exp $
d81 1
a81 1
	pg-config-ref.sgml \
@


1.21
log
@Allow overriding HSTYLE and PSTYLE from environment
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.20 2000/09/12 05:36:06 thomas Exp $
d82 1
a82 1
	pgctl-ref.sgml \
@


1.20
log
@Update to refer to more recent stylesheets in my home directory.
 These stylesheets are pretty old, but the 15x series crashes FreeBSD jade.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.19 2000/08/31 16:09:20 petere Exp $
d30 1
a30 1

d32 2
d35 1
@


1.19
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.18 2000/08/26 13:08:14 petere Exp $
d31 2
a32 2
HSTYLE= /home/users/t/thomas/db118.d/docbook/html
PSTYLE= /home/users/t/thomas/db118.d/docbook/print
@


1.18
log
@Add pg-config utility that stores some configuration parameters other
packages can use to configure their build.

E.g.,
$ pg-config --libdir
/usr/local/pgsql/lib

`pg-config --configure' stores the configure command line.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.17 2000/07/21 00:44:11 petere Exp $
d15 7
a21 2
PGDOCS= ../..
SRCDIR= ../../../src
a52 8

# Pick up Makefile.global from the source area
# This is the only resource from the code source area and is optional.
# Actually, we want this to get Makefile.custom - thomas 1998-03-01

ifneq ($(wildcard $(SRCDIR)/Makefile.global),)
  include $(SRCDIR)/Makefile.global
endif
@


1.17
log
@Update installation instructions to new realities. Combined into one file.
Improved automation of INSTALL file generation.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.16 2000/07/16 14:50:38 petere Exp $
d81 1
@


1.16
log
@Automatic dependency tracking

The .DEFAULT rule in backend/Makefile is harmful -- removed.
Replace `::' rules by `:'.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.15 2000/06/18 21:24:51 petere Exp $
d202 19
@


1.15
log
@Separated set constraints and set transaction reference pages, revised set
reference page to new configuration system. Big update to administrator's
guide, chapters Runtime environment, Client authentication, and User
management, the latter two were part of the old Security chapter.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.14 2000/05/02 20:01:51 thomas Exp $
d124 1
a124 1
install::
d126 1
a126 1
all::
d146 1
a146 1
clean::
d149 1
a149 1
distclean::
@


1.14
log
@Fixups in content and markup for 7.0 release.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.13 2000/01/14 22:11:31 petere Exp $
d107 1
a107 1
	select.sgml select_into.sgml set.sgml show.sgml \
@


1.13
log
@* User management commands no longer user pg_exec_query_dest -> more robust

* Let unprivileged users change their own passwords.

* The password is now an Sconst in the parser, which better reflects its text datatype and also
forces users to quote them.

* If your password is NULL you won't be written to the password file, meaning you can't connect
until you have a password set up (if you use password authentication).

* When you drop a user that owns a database you get an error. The database is not gone.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.12 1999/12/05 20:21:59 momjian Exp $
d70 3
a72 4
APPLICATIONS= createdb.sgml createuser.sgml \
	createlang.sgml \
	dropdb.sgml dropuser.sgml \
	droplang.sgml \
d77 1
d81 1
d91 3
a93 2
	close.sgml cluster.sgml commit.sgml copy.sgml \
	create_aggregate.sgml create_database.sgml create_function.sgml create_group.sgml \
d103 1
a103 1
	explain.sgml fetch.sgml grant.sgml \
d106 1
a106 1
	reset.sgml revoke.sgml rollback.sgml \
d108 1
a108 1
	unlisten.sgml update.sgml vacuum.sgml
@


1.12
log
@Update.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/Makefile,v 1.1 1999/12/05 20:04:39 momjian Exp $
d88 1
a88 1
COMMANDS= abort.sgml alter_table.sgml alter_user.sgml \
d91 2
a92 1
	create_aggregate.sgml create_database.sgml create_function.sgml create_index.sgml \
d97 2
a98 1
	drop_aggregate.sgml drop_database.sgml drop_function.sgml drop_index.sgml \
@


1.11
log
@New scripts for create/drop user/db from Peter Eisentraut
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/src/sgml/Makefile,v 1.10 1999/08/08 04:18:29 thomas Exp $
d70 4
a73 5
APPLICATIONS= \
	createdb.sgml
	createuser.sgml \
	dropdb.sgml
	dropuser.sgml \
@


1.10
log
@Allow nsgmls to validate input by defining the document type.
Use refentry.sgml as a generic header for man pages through nsgmls.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.9 1999/08/06 13:46:17 thomas Exp $
d70 5
a74 4
APPLICATIONS= createdb.sgml createuser.sgml \
	createlang.sgml \
	destroydb.sgml destroyuser.sgml \
	destroylang.sgml \
@


1.9
log
@Remove explicit references to ref/ path in file names; use vpath instead.
Fix rules for man pages to ensure double-pass to get cross references.
Add a few new man pages.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.8 1999/07/06 17:19:41 thomas Exp $
d153 2
a154 1
	nsgmls $< | sgmlspl $(D2MSCRIPT) --lowercase --section 1
d157 2
a158 1
	nsgmls $< | sgmlspl $(D2MSCRIPT) --lowercase --section 1
d161 2
a162 1
	nsgmls $< | sgmlspl $(D2MSCRIPT) --lowercase --section l
@


1.8
log
@Update makefile to generate man pages.
Include first cut at instructions for man pages in docguide.sgml.
Fix markup.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.7 1998/10/30 19:36:51 thomas Exp $
a16 1
D2MDIR= ../docbook2man
d18 1
a18 1
# This is where the default stylesheets appear on my system.
a21 1

d24 1
d26 2
a27 2
HSTYLE=/opt/sgml/current/docbook/html
PSTYLE=/opt/sgml/current/docbook/print
d41 6
d53 2
a54 2
ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
include $(SRCDIR)/Makefile.global
d66 2
d71 1
d73 1
d75 1
d81 2
d108 8
a115 4
APPSOURCES= $(addprefix ref/, $(APPLICATIONS))
SQLSOURCES= $(addprefix ref/, $(COMMANDS))
APPTARGETS= $(APPLICATIONS:.sgml=.1)
SQLTARGETS= $(COMMANDS:.sgml=.l)
a120 2
#	$(MAKE) all
#	(mv -rf *.gz ..)
d124 7
a130 7
#man:: .manlist
#	for f in `cat .manlist` ; do \
#		nsgmls $f | sgmlspl ../docbook2man/docbook2man-spec.pl --lowercase; \
#	done
#
#.manlist: $(MANSOURCES)
#	(grep -iE '<refentry([ ]|>)' $(MANSOURCES) | cut -f 1 -d : | sort | uniq) > .manlist
d132 1
a132 1
man1: $(APPTARGETS)
d135 1
a135 1
	mv *.1 man1/
d137 1
a137 1
manl: $(SQLTARGETS)
d140 1
a140 1
	mv *.l manl/
d143 1
a143 1
	(rm -rf HTML.manifest *.html *.htm man1 manl manpage*)
d152 5
a156 2
%.1: ref/%.sgml
	nsgmls $< | sgmlspl $(D2MDIR)/docbook2man-spec.pl --defsection 1
d158 2
a159 2
%.l: ref/%.sgml
	nsgmls $< | sgmlspl $(D2MDIR)/docbook2man-spec.pl --defsection l
@


1.7
log
@Minor editing and markup changes as a result of preparing the Postscript
 documentation for v6.4.
Bigger updates to the installation instructions (install and config).
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.6 1998/09/30 05:41:39 thomas Exp $
d17 1
d24 2
a25 2
HSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/html
PSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/print
d27 2
a28 2
#HSTYLE=/home/tgl/SGML/db107.d/docbook/html
#PSTYLE=/home/tgl/SGML/db107.d/docbook/print
d61 40
d110 18
d129 1
a129 1
	(rm -rf HTML.manifest *.html *.htm)
d138 2
a139 6
# Compressed file

%.gz:	%
	(gzip -f $<)

# TAR file for HTML package
d141 2
a142 3
%.tar:	%.html # %.ps
	($(TAR) cf $@@ $*.html index.html *.htm *.gif) # $*.ps
	(rm -rf index.html *.htm)
@


1.6
log
@Clean up pages. Add information for operator precedence.
Split introduction sections into separate files to allow the legal notice
 and notation sections appear in all documents without having the history
 show up everplace too.
Add full list of reserved and non-reserved key words in syntax.sgml.
Add a separate chapter to the admin guide on security.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.5 1998/09/25 13:41:25 thomas Exp $
d122 1
a122 1
	cp -p ../graphics/%.gif .
@


1.5
log
@Include the graphics directory in build lookup path.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.4 1998/07/29 06:29:04 thomas Exp $
d70 1
a70 1
	(rm -rf *.html *.htm)
@


1.4
log
@Use option to jade to produce html file names from id field in tag.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.3 1998/05/13 05:33:30 thomas Exp $
d34 1
a34 1
DBOPTS= -D ref
@


1.3
log
@First changes for reference pages. Fix markup in the docguide.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/src/sgml/Makefile,v 1.2 1998/03/01 20:44:37 thomas Exp $
d32 2
d36 4
d96 2
a97 2
	(ln -sf book01.htm index.html)
	(ln -sf book01.htm $*.html)
@


1.2
log
@Try a fancier makefile. Allows real building of html and rtf output
 rather than just executing ../Makefile.
@
text
@d11 1
a11 1
#    $Header$
d32 2
a33 1
#DBOPTS= -V %no-split-output% -V %no-make-index%
d89 1
a89 1
	jade $(DBOPTS) -D sgml $(HTMLOPTS) -t sgml $<
@


1.1
log
@Stopgap makefile for new sgml source documentation.
Should redo this before v6.3 release if possible.
@
text
@d1 13
a13 1
# Stopgap makefile for sgml documentation
d15 101
a115 1
include ../Makefile
@
