File: makedoc.sh

package info (click to toggle)
ruby-tokyocabinet 1.31-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,636 kB
  • ctags: 942
  • sloc: ruby: 3,594; ansic: 3,387; sh: 29; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

LANG=C
LC_ALL=C
PATH="$PATH:/usr/local/bin:$HOME/bin:.:.."
export LANG LC_ALL PATH

rm -rf doc

rdoc --title "Tokyo Cabinet" -o doc tokyocabinet-doc.rb
find doc -type f -name '*.html' |
while read file
do
  fgrep -v '<a href="http://validator.w3.org/check/referer">[Validate]</a>' "$file" |
    sed -e "s/&#8217;/'/g" -e 's/%%/<br\/>/g' > tmp.html
  mv -f tmp.html "$file"
done
rm -f tmp.html