MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
-scmlib_planetariumdir = $(scmlibdir)planetarium
+scmlib_subdir = $(scmlibdir)planetarium
sources = earth.scm geometry.scm google-earth.scm graphics.scm
sources += matrices.scm mit-cairo.scm mit-cil.scm mit-graphics.scm mit-gtk.scm
sources += mit-r3rs.scm mit-syntax.scm mit-x.scm solar.scm tellurion.scm
sources += terrain.scm time.scm
-scmlib_planetarium_DATA = $(sources)
-scmlib_planetarium_DATA += earth.bin earth.bci earth.com
-scmlib_planetarium_DATA += geometry.bin geometry.bci geometry.com
-scmlib_planetarium_DATA += google-earth.bin google-earth.bci google-earth.com
-scmlib_planetarium_DATA += graphics.bin graphics.bci graphics.com
-scmlib_planetarium_DATA += matrices.bin matrices.bci matrices.com
-scmlib_planetarium_DATA += mit-cairo.bin mit-cairo.bci mit-cairo.com
-scmlib_planetarium_DATA += mit-cil.bin mit-cil.bci mit-cil.com
-scmlib_planetarium_DATA += mit-graphics.bin mit-graphics.bci mit-graphics.com
-scmlib_planetarium_DATA += mit-gtk.bin mit-gtk.bci mit-gtk.com
-scmlib_planetarium_DATA += mit-r3rs.bin mit-r3rs.bci mit-r3rs.com
-scmlib_planetarium_DATA += mit-syntax.bin mit-syntax.bci mit-syntax.com
-scmlib_planetarium_DATA += mit-x.bin mit-x.bci mit-x.com
-scmlib_planetarium_DATA += solar.bin solar.bci solar.com
-scmlib_planetarium_DATA += tellurion.bin tellurion.bci tellurion.com
-scmlib_planetarium_DATA += terrain.bin terrain.bci terrain.com
-scmlib_planetarium_DATA += time.bin time.bci time.com
-scmlib_planetarium_DATA += make.scm mit-@MIT_SCHEME_OS_SUFFIX@.pkd
-scmlib_planetarium_DATA += mit-link.scm mit-3d-@MIT_SCHEME_OS_SUFFIX@.pkd
-
-info_TEXINFOS = mit-scheme-planetarium.texi
+binaries = earth.bci earth.com
+binaries += geometry.bci geometry.com
+binaries += google-earth.bci google-earth.com
+binaries += graphics.bci graphics.com
+binaries += matrices.bci matrices.com
+binaries += mit-cairo.bci mit-cairo.com
+binaries += mit-cil.bci mit-cil.com
+binaries += mit-graphics.bci mit-graphics.com
+binaries += mit-gtk.bci mit-gtk.com
+binaries += mit-r3rs.bci mit-r3rs.com
+binaries += mit-syntax.bci mit-syntax.com
+binaries += mit-x.bci mit-x.com
+binaries += solar.bci solar.com
+binaries += tellurion.bci tellurion.com
+binaries += terrain.bci terrain.com
+binaries += time.bci time.com
+
+scmlib_sub_DATA = $(sources)
+scmlib_sub_DATA += $(binaries)
+scmlib_sub_DATA += make.scm mit-@MIT_SCHEME_OS_SUFFIX@.pkd
+scmlib_sub_DATA += mit-link.scm mit-3d-@MIT_SCHEME_OS_SUFFIX@.pkd
+
+info_TEXINFOS = mit-scheme-pucked-planetarium.texi
AM_MAKEINFOHTMLFLAGS = --no-split
-# Set these to the defaults used by Scheme.
-infodir = $(datarootdir)/info
-htmldir = $(libdir)/mit-scheme-pucked/doc
-dvidir = $(libdir)/mit-scheme-pucked/doc
-pdfdir = $(libdir)/mit-scheme-pucked/doc
+# The shared system documentation directory...
+docdir = $(datarootdir)/doc/mit-scheme-pucked
+# ...with separate html and pdf subdirectories.
+htmldir = $(datarootdir)/doc/mit-scheme-pucked/html
+pdfdir = $(datarootdir)/doc/mit-scheme-pucked/pdf
+# ...and dvi and ps subdirectories?
+dvidir = $(datarootdir)/doc/mit-scheme-pucked/dvi
+psdir = $(datarootdir)/doc/mit-scheme-pucked/ps
make.scm: mit-make.scm
cp $< $@
-earth.bin: stamp-scheme
earth.bci: stamp-scheme
earth.com: stamp-scheme
-geometry.bin: stamp-scheme
geometry.bci: stamp-scheme
geometry.com: stamp-scheme
-google-earth.bin: stamp-scheme
google-earth.bci: stamp-scheme
google-earth.com: stamp-scheme
-graphics.bin: stamp-scheme
graphics.bci: stamp-scheme
graphics.com: stamp-scheme
-matrices.bin: stamp-scheme
matrices.bci: stamp-scheme
matrices.com: stamp-scheme
-mit-cairo.bin: stamp-scheme
mit-cairo.bci: stamp-scheme
mit-cairo.com: stamp-scheme
-mit-cil.bin: stamp-scheme
mit-cil.bci: stamp-scheme
mit-cil.com: stamp-scheme
-mit-graphics.bin: stamp-scheme
mit-graphics.bci: stamp-scheme
mit-graphics.com: stamp-scheme
-mit-gtk.bin: stamp-scheme
mit-gtk.bci: stamp-scheme
mit-gtk.com: stamp-scheme
-mit-r3rs.bin: stamp-scheme
mit-r3rs.bci: stamp-scheme
mit-r3rs.com: stamp-scheme
-mit-syntax.bin: stamp-scheme
mit-syntax.bci: stamp-scheme
mit-syntax.com: stamp-scheme
-mit-x.bin: stamp-scheme
mit-x.bci: stamp-scheme
mit-x.com: stamp-scheme
-solar.bin: stamp-scheme
solar.bci: stamp-scheme
solar.com: stamp-scheme
-tellurion.bin: stamp-scheme
tellurion.bci: stamp-scheme
tellurion.com: stamp-scheme
-terrain.bin: stamp-scheme
terrain.bci: stamp-scheme
terrain.com: stamp-scheme
-time.bin: stamp-scheme
time.bci: stamp-scheme
time.com: stamp-scheme
mit-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme
EXTRA_DIST += mit-check.sh
EXTRA_DIST += mit-make.scm mit-optiondb.scm cil-*.txt
EXTRA_DIST += mit-snapshot.scm
+EXTRA_DIST += debian
install-data-hook:
- echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
- | $(MIT_SCHEME_EXE) --batch-mode
+ if [ -f "$(DESTDIR)$(scmlibdir)optiondb.scm" ]; then \
+ echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
+ | $(MIT_SCHEME_EXE) --batch-mode; fi
install-html: install-html-am
- echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \
- | $(MIT_SCHEME_EXE) --batch-mode
+ if [ -f "$(DESTDIR)$(htmldir)/index.html" ]; then \
+ echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \
+ | $(MIT_SCHEME_EXE) --batch-mode; fi
uninstall-hook:
- echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
- | $(MIT_SCHEME_EXE) --batch-mode
- [ -d "$(DESTDIR)$(scmlib_planetariumdir)" ] \
- && rmdir "$(DESTDIR)$(scmlib_planetariumdir)"
- [ -d "$(DESTDIR)$(htmldir)" ] \
- && ( echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \
- | $(MIT_SCHEME_EXE) --batch-mode )
+ if [ -f "$(DESTDIR)$(scmlibdir)optiondb.scm" ]; then \
+ echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
+ | $(MIT_SCHEME_EXE) --batch-mode; fi
+ if [ -f "$(DESTDIR)$(htmldir)/index.html" ]; then \
+ echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \
+ | $(MIT_SCHEME_EXE) --batch-mode; fi
+ if [ -d "$(DESTDIR)$(scmlib_subdir)" ]; then \
+ rmdir "$(DESTDIR)$(scmlib_subdir)"; fi
--- /dev/null
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mit-scheme-pucked-planetarium
+Source: http://birchwood-abbey.net/~matt/Scheme/
+
+Files: *
+Copyright: 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
+ 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+ 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
+ Massachusetts Institute of Technology
+License: GPL-2+
+ This is a planetarium for Friar Puck's MIT/GNU Scheme.
+ .
+ This planetarium 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 planetarium 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 planetarium; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+ USA.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
\input texinfo @c -*-Texinfo-*-
@comment %**start of header
-@setfilename mit-scheme-planetarium.info
-@set VERSION 0.5
+@setfilename mit-scheme-pucked-planetarium.info
+@include version.texi
@settitle Planetarium @value{VERSION}
@comment %**end of header
@dircategory Programming Languages
@direntry
-* MIT/GNU Scheme Planetarium: (mit-scheme-planetarium).
+* MIT/GNU Scheme Pucked Planetarium: (mit-scheme-pucked-planetarium).
Planetarium.
@end direntry
@titlepage
-@title A Planetarium
-@subtitle for MIT/GNU Scheme version 9.3
-@author by Matt Birkholz (@email{birkholz@@alum.mit.edu})
+@title Planetarium User's Manual
+@author by Matt Birkholz
@page
@vskip 0pt plus 1filll
@insertcopying
side. If an old X11 graphics device is all that is available, just
the terminator is drawn.
-To use, startup mit-scheme and enter the following two s-expressions
-at the REPL prompt.
+To use, startup mit-scheme-pucked and enter the following two
+s-expressions at the REPL prompt.
@example
(load-option 'PLANETARIUM)
elevation data from Google Earth.
To generate a terrain from a simple mathematical function, startup
-mit-scheme and enter the following three s-expressions at the REPL
-prompt.
+mit-scheme-pucked and enter the following three s-expressions at the
+REPL prompt.
@example
(load-option 'planetarium)
@example
#!/bin/bash
- mit-scheme --batch-mode <<\EOF
+ mit-scheme-pucked --batch-mode <<\EOF
(begin
(load-option 'planetarium)
(request-google-elevations "monterey.txt"