view scripts/mkdoc @ 6910:710aea220a2c

Added tag ss-2-9-14 for changeset fc55a5e1760b
author jwe@segfault.lan
date Fri, 01 Feb 2008 23:23:44 -0500
parents ac8d64b9e76a
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