#! /bin/sh # retawq/tool/instdocu - install the documentation # This file is part of retawq (), a network # client created by Arne Thomassen; retawq is basically released under certain # versions of the GNU General Public License and WITHOUT ANY WARRANTY. # Read the file COPYING for license details, README for program information. # Copyright (C) 2004-2005 Arne Thomassen # This shell script is automatically executed during "make install". # Don't start it manually. # step 1: prepare #me=`echo "$0" | sed 's,.*[/],,'` me="$0" case "x$0" in xtool/instdocu) ;; *) echo "$me: must be executed as 'tool/instdocu'" >&2; (exit 1); exit 1 ;; esac case "x$#" in x1) ;; *) echo "$me: usage: $me " >&2; (exit 1); exit 1 ;; esac path="$1" case "x$path" in x/*) ;; *) echo "$me: path must be absolute" >&2; (exit 1); exit 1 ;; esac case "x$path" in */) ;; *) path="$path/" ;; esac # case "x$path" in # x*retawq*) ;; # *) path="$path"retawq/ ;; # esac # CHECKME: "-p" portability... mkdir -p "$path" || { echo "$me: can't create directory $path" >&2; (exit 1); exit 1; } # step 2: copy the files cp -f README INSTALL "$path" cd docu/ cp -f *.html example* retawq.lsm "$path" sed 's,\.\./,,' "$path"index.html sed 's,\.\./,,' "$path"ctconfig.html sed 's,\.\./,,' "$path"user_guide.html