added Makefile
This commit is contained in:
parent
7ee829982d
commit
ec8e7debb7
3 changed files with 28 additions and 27 deletions
28
Makefile
Executable file
28
Makefile
Executable file
|
@ -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
|
||||
|
16
go
16
go
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
11
inst
11
inst
|
@ -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
|
Loading…
Add table
Reference in a new issue