projects
/
fw
/
altos
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
altoslib: Retry map connections 10 times on network failure
[fw/altos]
/
doc
/
install-html
1
#!/bin/sh
2
destination=
3
state=arg
4
for file in "$@"; do
5
case $state in
6
arg)
7
case $file in
8
-d)
9
state=destination
10
;;
11
*)
12
base=`basename $file`
13
case "$destination" in
14
"")
15
echo "Need -d destination option before files" 1>&2
16
exit 1
17
;;
18
*)
19
sed \
20
-e 's/<[?]xml [^>]*>//' \
21
-e 's/<!DOCTYPE [^>]*>//' "$file" > "$destination/$base"
22
;;
23
esac
24
;;
25
esac
26
;;
27
destination)
28
destination=$file
29
state=arg
30
;;
31
esac
32
done