New build system.
authormdw <mdw>
Sun, 24 Feb 2002 15:43:20 +0000 (15:43 +0000)
committermdw <mdw>
Sun, 24 Feb 2002 15:43:20 +0000 (15:43 +0000)
.links [new file with mode: 0644]
Makefile.m4 [new file with mode: 0644]
configure.in [new file with mode: 0644]
setup [new file with mode: 0755]

diff --git a/.links b/.links
new file mode 100644 (file)
index 0000000..54e724f
--- /dev/null
+++ b/.links
@@ -0,0 +1,4 @@
+missing
+mkinstalldirs
+install-sh
+COPYING
diff --git a/Makefile.m4 b/Makefile.m4
new file mode 100644 (file)
index 0000000..e8e1df7
--- /dev/null
@@ -0,0 +1,90 @@
+## -*-fundamental-*-
+##
+## $Id: Makefile.m4,v 1.1 2002/02/24 15:43:20 mdw Exp $
+##
+## Makefile for IPS
+##
+## (c) 2002 Mark Wooding
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+## 
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+## 
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+##----- Revision history ----------------------------------------------------
+##
+## $Log: Makefile.m4,v $
+## Revision 1.1  2002/02/24 15:43:20  mdw
+## New build system.
+##
+
+AUTOMAKE_OPTIONS = foreign
+
+SRC = \
+        ips.tex ips.cls \
+        basics.tex \
+        auth-mac.tex auth-sig.tex \
+        enc-intro.tex enc-pub.tex enc-symm.tex enc-ies.tex
+
+changequote([[, ]])
+
+define([[OUTPUTS]], [[dnl
+_([[notes]], [[\ipsslidesfalse\ipsanswerstrue]])dnl
+_([[noans]], [[\ipsslidesfalse\ipsanswersfalse]])dnl
+_([[slides]], [[\ipsslidestrue]])dnl
+]])
+define([[adorn]], [[define([[_]], [[$2$]][[1$3 ]])$1]])
+define([[tags]], [[adorn([[$1]])]])
+define([[addsuffix]], [[adorn([[$1]], [[ips-]], [[$2]])]])
+
+DVIGZ = addsuffix([[OUTPUTS]], [[.dvi.gz]])
+PSGZ = addsuffix([[OUTPUTS]], [[.ps.gz]])
+PDF = addsuffix([[OUTPUTS]], [[.pdf]])
+
+noinst_DATA = $(DVIGZ) $(PSGZ) $(PDF)
+
+define([[_]], [[dnl
+ips-$1.dvi: $(SRC)
+       @if [ ! -d $1 ]; then \
+         mkdir $1; \
+         for i in $(SRC); do ln -s ../$$i $1; done; \
+         echo '$2' >$1/ips.cfg; \
+       fi
+       cd $1 && \
+       latex ips && bibtex ips && latex ips && latex ips && \
+       cp ips.dvi ../ips-$1.dvi
+ips-$1.pdf: ips-$1.dvi
+       cd $1 && pdflatex ips && cp ips.pdf ../ips-$1.pdf
+ips-$1.dvi.gz: ips-$1.dvi
+       gzip -9cv ips-$1.dvi >ips-$1.dvi.gz
+ips-$1.ps: ips-$1.dvi
+       dvips -o ips-$1.ps ips-$1.dvi
+ips-$1.ps.gz: ips-$1.ps
+       gzip -9cv ips-$1.ps >ips-$1.ps.gz
+]])
+OUTPUTS
+
+CLEANFILES = *.dvi *.ps $(DVIGZ) $(PSGZ) $(PDF)
+
+Makefile.am: Makefile.m4
+       cd $(srcdir) && m4 Makefile.m4 >Makefile.am
+
+EXTRA_DIST = $(SRC) Makefile.m4
+
+clean:; rm -rf tags([[OUTPUTS]])
+
+.PHONY: dvi
+
+##----- That's all, folks ---------------------------------------------------
diff --git a/configure.in b/configure.in
new file mode 100644 (file)
index 0000000..463dd78
--- /dev/null
@@ -0,0 +1,37 @@
+dnl -*-fundamental-*-
+dnl
+dnl $Id: configure.in,v 1.1 2002/02/24 15:43:20 mdw Exp $
+dnl
+dnl Dummy configuration script for ips 
+dnl
+dnl (c) 2002 Mark Wooding
+dnl
+
+dnl ----- Licensing notice --------------------------------------------------
+dnl
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 2 of the License, or
+dnl (at your option) any later version.
+dnl 
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl 
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software Foundation,
+dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+dnl ----- Revision history --------------------------------------------------
+dnl
+dnl $Log: configure.in,v $
+dnl Revision 1.1  2002/02/24 15:43:20  mdw
+dnl New build system.
+dnl
+
+AC_INIT(ips.tex)
+AM_INIT_AUTOMAKE(ips, 1.1.0)
+AC_OUTPUT(Makefile)
+
+dnl ----- That's all, folks -------------------------------------------------
diff --git a/setup b/setup
new file mode 100755 (executable)
index 0000000..04ca935
--- /dev/null
+++ b/setup
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+mklinks
+mkaclocal
+m4 Makefile.m4 >Makefile.am
+autoconf
+automake