home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / remind-03.00.19.tgz / remind-03.00.19.tar / remind-03.00.19 / www / Makefile < prev    next >
Makefile  |  1998-04-22  |  3KB  |  81 lines

  1. # Makefile for installing WWW server calendar scripts
  2. # This file is part of REMIND.
  3. # Copyright (C) 1992-1997 by David F. Skoll
  4.  
  5. # $Id: Makefile,v 1.8 1998/04/23 02:57:06 dfs Exp $
  6.  
  7. # The complete name of your www host.  Example: www.mycompany.com
  8. WWWHOST = shevy.skoll.ca
  9. # WWWHOST = www.mycompany.com
  10.  
  11. # The complete path to where the scripts actually live, as seen by
  12. # the UNIX operating system.
  13. SCRIPTDIR = /var/web/cgi-bin
  14. # SCRIPTDIR = /home/dfs/Remind/www/TEST
  15.  
  16. # Where the scripts live as seen by the web browser.  If
  17. # they live in WWWHOST/cgi-bin, supply /cgi-bin
  18. CGIDIR = /cgi-bin
  19.  
  20. # The complete path to the HTML file "calendar.html".  This is a sample
  21. # file containing links to all the scripts.  This path should be the
  22. # path as seen by the UNIX operating system
  23. HTMLDIR = /home/dfs/public_html
  24.  
  25. # Where you stick images, as seen by UNIX
  26. IMAGEDIR = /home/dfs/public_html
  27.  
  28. # Where images are, as seen by web browers
  29. IMAGEBASE = /~dfs
  30.  
  31. # Location.  Typically, the name of your city or town.  Example: Ottawa
  32. LOCATION = Ottawa
  33. # LOCATION = New York
  34.  
  35. # Where do Remind and Rem2PS executables live?
  36. REMIND = /usr/local/bin/remind
  37. REM2PS = /usr/local/bin/rem2ps
  38.  
  39. # Don't change stuff below here.
  40. # --------------------------------------------------------------------
  41.  
  42. # Construct a rotten mean nasty sed script to do the dirty work
  43. SEDSCRIPT = -e 's/Ottawa/$(LOCATION)/g' \
  44.         -e 's@http://your.machine/your.dir@http://$(WWWHOST)$(CGIDIR)@g' \
  45.         -e 's@%SCRIPTDIR%@$(SCRIPTDIR)@g' \
  46.         -e 's@%REMIND%@$(REMIND)@g' \
  47.         -e 's@%IMAGEBASE%@$(IMAGEBASE)@g' \
  48.         -e 's@%REM2PS%@$(REM2PS)@g'
  49.  
  50. all:
  51.     @echo "Edit the Makefile; then type 'make install' to install"
  52.     @echo "the www server scripts."
  53.  
  54. # OK, it's abominable.  But it works...
  55. install:
  56.     cp rem2html calps hebdate hebps hebhtml moon sunrise sunset $(SCRIPTDIR)
  57.     sed $(SEDSCRIPT) < cal_dispatch-DIST  > $(SCRIPTDIR)/cal_dispatch
  58.     sed $(SEDSCRIPT) < hebdate.rem-DIST   > $(SCRIPTDIR)/hebdate.rem
  59.     sed $(SEDSCRIPT) < moon.rem-DIST      > $(SCRIPTDIR)/moon.rem
  60.     sed $(SEDSCRIPT) < sunrise.rem-DIST   > $(SCRIPTDIR)/sunrise.rem
  61.     sed $(SEDSCRIPT) < sunset.rem-DIST    > $(SCRIPTDIR)/sunset.rem
  62.     sed $(SEDSCRIPT) < calendar.html-DIST > $(HTMLDIR)/calendar.html
  63.     sed $(SEDSCRIPT) < rem2html           > $(SCRIPTDIR)/rem2html
  64.     chmod 644 $(SCRIPTDIR)/sunrise.rem
  65.     chmod 644 $(SCRIPTDIR)/moon.rem
  66.     chmod 644 $(SCRIPTDIR)/hebdate.rem
  67.     chmod 644 $(SCRIPTDIR)/sunset.rem
  68.     chmod 644 $(HTMLDIR)/calendar.html
  69.     chmod 755 $(SCRIPTDIR)/cal_dispatch
  70.     chmod 755 $(SCRIPTDIR)/rem2html
  71.     chmod 755 $(SCRIPTDIR)/calps $(SCRIPTDIR)/hebdate \
  72.     $(SCRIPTDIR)/hebps $(SCRIPTDIR)/moon $(SCRIPTDIR)/sunrise \
  73.     $(SCRIPTDIR)/sunset $(SCRIPTDIR)/hebhtml $(SCRIPTDIR)/rem2html
  74.  
  75.     cp firstquarter.gif fullmoon.gif lastquarter.gif newmoon.gif $(IMAGEDIR)
  76.     chmod 644 $(IMAGEDIR)/firstquarter.gif $(IMAGEDIR)/fullmoon.gif $(IMAGEDIR)/lastquarter.gif $(IMAGEDIR)/newmoon.gif
  77.  
  78.  
  79.  
  80.  
  81.