view scripts/mkdoc @ 5333:ac8d64b9e76a

[project @ 2005-05-02 18:15:20 by jwe]
author jwe
date Mon, 02 May 2005 18:16:51 +0000
parents 8496ae60db8a
children 4270ded9ddc6
line wrap: on
line source

#! /bin/sh

set -e

if test $# != 1; then
  d=.
else
  d=$1
fi

if test -f gethelp; then
  cat << EOF
### DO NOT EDIT!
###
### This file is generated automatically from the Octave sources.
### Edit those files instead and run make to update this file.

EOF
  find $d -name '*.m' | \
    sed "s,\(.*\)/\(.*\)\.m,./gethelp \2 < & | sed 's/^ *@/@/'," | \
    /bin/sh
else
  echo "gethelp program seems to be missing!" 1>&2
  exit 1
fi