view doc/interpreter/find-docstring-files.sh @ 15880:df1aceb8f0bc ss-3-7-1

snapshot version 3.7.1 * configure.ac (AC_INIT): Set version to 3.7.1. (OCTAVE_RELEASE_DATE): Set to 2013-01-02.
author John W. Eaton <jwe@octave.org>
date Wed, 02 Jan 2013 15:16:08 -0500
parents 2fc554ffbc28
children 741dbca67d80
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 teh 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