diff options
author | Bdale Garbee <bdale@gag.com> | 2016-07-04 23:48:32 +0200 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2016-07-04 23:48:32 +0200 |
commit | 06c3d5420080bc1c6fdfb213a9d616b75611c159 (patch) | |
tree | e882a83c3a76c82e3a8e832eb3805c0c5c010d0d /doc/install-html | |
parent | eb5bd00b1c5045e64753ba9d066ef5cfce9d5a1e (diff) | |
parent | ea1ff225f1f450ee3fc377807d1bb7b982bf792d (diff) |
Merge branch 'branch-1.6' into debian
Diffstat (limited to 'doc/install-html')
-rwxr-xr-x | doc/install-html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/install-html b/doc/install-html new file mode 100755 index 00000000..71c7933c --- /dev/null +++ b/doc/install-html @@ -0,0 +1,32 @@ +#!/bin/sh +destination= +state=arg +for file in "$@"; do + case $state in + arg) + case $file in + -d) + state=destination + ;; + *) + base=`basename $file` + case "$destination" in + "") + echo "Need -d destination option before files" 1>&2 + exit 1 + ;; + *) + sed \ + -e 's/<[?]xml [^>]*>//' \ + -e 's/<!DOCTYPE [^>]*>//' "$file" > "$destination/$base" + ;; + esac + ;; + esac + ;; + destination) + destination=$file + state=arg + ;; + esac +done |