From ec8e7debb70e8e5bf6cccad942953937a1f669e2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 22 Jun 2000 22:51:10 +0000 Subject: [PATCH] added Makefile --- Makefile | 28 ++++++++++++++++++++++++++++ go | 16 ---------------- inst | 11 ----------- 3 files changed, 28 insertions(+), 27 deletions(-) create mode 100755 Makefile delete mode 100755 go delete mode 100755 inst diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..4c92246 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +#!/bin/bash + + +PAGES := intro documentation hardware download links mailinglist +OTHERFILES := comedi_logo.gif + +DESTDIR := ~/www/comedi + +all: $(patsubst %,%.html,$(PAGES)) + +frame.pre: frame.html + grep -B 99999 CONTENT frame.html | grep -v CONTENT >frame.pre + +frame.post: frame.html + grep -A 99999 CONTENT frame.html | grep -v CONTENT >frame.post + +%.html: frame.pre frame.post %-x.html + cat frame.pre $(patsubst %.html,%-x.html,$@) frame.post >$@ + +clean: + -rm frame.pre frame.post + -rm $(patsubst %,%.html,$(PAGES)) + +install: + cp $(patsubst %,%.html,$(PAGES)) $(DESTDIR) + cp $(OTHERFILES) $(DESTDIR) + cd $(DESTDIR) && ln -s intro.html index.html + diff --git a/go b/go deleted file mode 100755 index 5e9d5af..0000000 --- a/go +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - - -grep -B 99999 CONTENT frame.html | grep -v CONTENT >frame.pre -grep -A 99999 CONTENT frame.html | grep -v CONTENT >frame.post - -cat frame.pre intro-x.html frame.post >intro.html -cat frame.pre documentation-x.html frame.post >documentation.html -cat frame.pre hardware-x.html frame.post >hardware.html -cat frame.pre download-x.html frame.post >download.html -cat frame.pre links-x.html frame.post >links.html -cat frame.pre mailinglist-x.html frame.post >mailinglist.html - - - - diff --git a/inst b/inst deleted file mode 100755 index b9daf96..0000000 --- a/inst +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - - -DEST=~/www/research - -for each in $(cat filelist) -do - cp $each $DEST/$each -done - -cd $DEST && ln -s intro.html index.html