1#! /bin/sh 2 3######################################################################## 4## 5## Copyright (C) 2009-2021 The Octave Project Developers 6## 7## See the file COPYRIGHT.md in the top-level directory of this 8## distribution or <https://octave.org/copyright/>. 9## 10## This file is part of Octave. 11## 12## Octave is free software: you can redistribute it and/or modify it 13## under the terms of the GNU General Public License as published by 14## the Free Software Foundation, either version 3 of the License, or 15## (at your option) any later version. 16## 17## Octave is distributed in the hope that it will be useful, but 18## WITHOUT ANY WARRANTY; without even the implied warranty of 19## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20## GNU General Public License for more details. 21## 22## You should have received a copy of the GNU General Public License 23## along with Octave; see the file COPYING. If not, see 24## <https://www.gnu.org/licenses/>. 25## 26######################################################################## 27 28set -e 29 30AWK=${AWK:-awk} 31SHELL=${SHELL:-/bin/sh} 32 33if [ $# -eq 1 ]; then 34 top_srcdir="$1" 35else 36 top_srcdir="../.." 37fi 38 39move_if_change="$top_srcdir/build-aux/move-if-change" 40 41interp_dir=$top_srcdir/doc/interpreter 42 43$AWK -v dir=doc/interpreter -f $interp_dir/images.awk < $interp_dir/images > $interp_dir/images.mk-t 44 45$SHELL $move_if_change $interp_dir/images.mk-t $interp_dir/images.mk 46