html/ 0000755 0001750 0001750 00000000000 14342654546 010415 5 ustar bage bage html/bin/ 0000755 0001750 0001750 00000000000 14342651724 011160 5 ustar bage bage html/bin/Makefile 0000644 0001750 0001750 00000000504 14342651724 012617 0 ustar bage bage SHELL=/bin/sh
html = h1 h2 h3 h4 h5 h6 title pre cite code em kbd samp strong var tt dfn
html1 = bold italic underline
install:
- for file in $(html) ; do \
rm -f $$file ; \
ln -s html $$file ; \
done
- for file in $(html1) ; do \
rm -f $$file ; \
ln -s html1 $$file ; \
done
clean:
rm -f $(html) $(html1)
html/bin/remote 0000644 0001750 0001750 00000000170 14342651724 012374 0 ustar bage bage #!/usr/bin/rc
# remote - tell netscape to open a URL
for(i) {
netscape -noraise -remote 'openURL('^$i^',new-window)'
}
html/bin/mailto 0000644 0001750 0001750 00000000156 14342651724 012372 0 ustar bage bage #!/usr/bin/rc
# mailto - generate a mailto link
cat $* | awk '{printf "%s\n", $1, $1 }'
html/bin/skel 0000644 0001750 0001750 00000001544 14342651724 012045 0 ustar bage bage #!/usr/bin/rc
#
# skel - create a skeletal html document that lists a bunch of files in a
# search for xxx to find the places where you'll want to edit
cat <
xxx auto-generated title
xxx auto-generated heading
EOF
ulhref $*
htmlsig
cat <
EOF
html/bin/sdate 0000644 0001750 0001750 00000000077 14342651724 012207 0 ustar bage bage #!/usr/bin/rc
# sdate - short-form date
/bin/date '+%b %e, %Y'
html/bin/ulhref 0000644 0001750 0001750 00000000256 14342651724 012373 0 ustar bage bage #!/usr/bin/rc
# uhlhref - create an unordered list, where each list item is an href
echo ''
cat $* | awk '{printf " - %s\n", $1, $1 }'
echo '
'
html/bin/quote 0000644 0001750 0001750 00000000063 14342651724 012237 0 ustar bage bage #!/usr/bin/rc
# quote - for email
sed 's/^/> /' $*
html/bin/unquote 0000644 0001750 0001750 00000000065 14342651724 012604 0 ustar bage bage #!/usr/bin/rc
# unquote - for email
sed 's/^> //' $*
html/bin/html1 0000644 0001750 0001750 00000000346 14342651724 012133 0 ustar bage bage #!/usr/bin/rc
# html1 - generate the html tag that corresponds to argv[0][0] (a single char)
#
# bold= italic= underline=
tag = `{basename $0| sed 's;\(.\)[^/]*$;\1;' }
echo -n '<'^$tag^'>'
cat $*
echo -n ''^$tag^'>'
html/bin/indent 0000644 0001750 0001750 00000000064 14342651724 012364 0 ustar bage bage #!/usr/bin/rc
# indent - by one tab
sed 's/^/ /' $*
html/bin/books 0000644 0001750 0001750 00000000737 14342651724 012227 0 ustar bage bage #!/bin/sh
#
# books - remove netscape tags from netscape bookmark files
# useful if you want to put them into private hotlists
progname=`basename $0`
usage() {
echo "Usage: $progname file.html" 1>&2
exit 1
}
if [ $# -lt 1 ]; then
# usage
exec books $HOME/.netscape/bookmarks.html
fi
for arg
do
grep http $arg | sed \
-e 's/ .DT.//' \
-e 's/ ADD_DATE=...........//' \
-e 's/ LAST_VISIT=...........//' \
-e 's/ LAST_MODIFIED=...........//'
done
html/bin/ullist 0000644 0001750 0001750 00000000173 14342651724 012420 0 ustar bage bage #!/usr/bin/rc
# uhlist - create a simple unordered list
echo ''
cat $* | awk '{printf " - %s\n", $1 }'
echo '
'
html/bin/mdate 0000644 0001750 0001750 00000000072 14342651724 012174 0 ustar bage bage #!/usr/bin/rc
# mdate - metric date
/bin/date '+%y/%m/%e'
html/bin/htmlsig 0000644 0001750 0001750 00000000507 14342651724 012554 0 ustar bage bage #!/usr/bin/rc
#
# htmlsig - add your signature to an html document
# customize the following to suit
date=`{sdate}
verbose='This page by
Steve Kotsopoulos, steve@border.com
'
#verbose=''
cat <
$verbose
Last update: $date
EOF
html/bin/html 0000644 0001750 0001750 00000000220 14342651724 012041 0 ustar bage bage #!/usr/bin/rc
# html - generate the html tag that corresponds to argv[0]
tag = `{basename $0}
echo -n '<'^$tag^'>'
cat $*
echo -n ''^$tag^'>'
html/bin/href 0000644 0001750 0001750 00000000144 14342651724 012026 0 ustar bage bage #!/usr/bin/rc
# href - generate an href
cat $* | awk '{printf "%s\n", $1, $1 }'
html/bin/undent 0000644 0001750 0001750 00000000064 14342651724 012400 0 ustar bage bage #!/usr/bin/rc
# undent - by one tab
sed 's/^ //' $*
html/README 0000644 0001750 0001750 00000002402 14342651724 011266 0 ustar bage bage Wily html tools:
README this file
guide guide file
bin/ script directory, contains the following programs:
books removes un-needed tags from Netscape bookmark files
href generate an href
html h1 h2 h3 h4 h5 h6 title pre cite code em kbd samp strong var tt dfn
html1 bold italic underline
htmlsig add your signature to an html document
indent indent - by one tab
mdate metric date?
quote quote - for email
remote tell netscape to open a URL
sdate short-form date
skel create a skeletal html document (a good thing to start with)
ulhref create an unordered list, where each list item is an href
ullist create a simple unordered list
undent undent - by one tab
unquote unquote - for email
All scripts assume rc is in /bin/rc, so they can run under acme on plan9
unmodified (though I haven't tested it yet).
This package should be installed under $home/wily/html
and you should make sure $home/wily/html/bin is in your path
To set things up, 'cd' to the bin directory and run 'make', which
sets up a bunch of symbolic links to the html and html1 scripts,
then just point wily at $home/wily/html/guide
html, indent, remote, undent by Gary Capell, other scripts by Steve Kotsopoulos
Comments to steve@border.com please
html/guide 0000644 0001750 0001750 00000000323 14342651724 011426 0 ustar bage bage |title |h1 |h2 |h4 |h6 |pre |address Font
|cite |code |em |kbd |samp |strong |var |tt
|bold |italic |skel |ulhref |ullist |href |mailto
spell remote