]> git.gag.com Git - fw/altos/blob - doc/install-html
altos: Use BMI088 as z-axis accel as needed
[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