view doc/interpreter/find-docstring-files.sh @ 17297:4d7f95eb8bfe

doc: Miscellaneous small tweaks to documentation for consistency. * doc/interpreter/external.txi: Don't group EXAMPLEFILEs which are longer than 20 lines. * doc/interpreter/oop.txi: Don't group EXAMPLEFILEs which are longer than 20 lines. * doc/interpreter/octave.texi: Eliminate trailing whitespace. * doc/interpreter/tips.txi: Eliminate trailing whitespace. * examples/mysparse.c: Eliminate trailing whitespace. * scripts/miscellaneous/compare_versions.m: use @qcode macro. * scripts/plot/gnuplot_binary.in: use @qcode macro. * scripts/statistics/tests/kruskal_wallis_test.m: use @cite macro.
author Rik <rik@octave.org>
date Tue, 20 Aug 2013 09:25:35 -0700
parents 741dbca67d80
children
line wrap: on
line source

#! /bin/sh

if [ $# -ne 1 ]; then
  echo "usage: find-docstring-files TOP-SRCDIR" 1>&2
  exit 1
fi

## if there is a file in the build directory tree, assume it is
## the file we are looking for.  Otherwise, get the one from the
## source tree.

if [ -f "../../scripts/DOCSTRINGS" ]; then
  echo "../../scripts/DOCSTRINGS"
else
  echo "$1/scripts/DOCSTRINGS"
fi

if [ -f "../../libinterp/DOCSTRINGS" ]; then
  echo "../../libinterp/DOCSTRINGS"
else
  echo "$1/libinterp/DOCSTRINGS"
fi