# HG changeset patch # User jwe # Date 744858490 0 # Node ID fbc0f5ebd3e0191cd1d17dc656026e11bc049627 # Parent a2db6687354d3d77c105d91d36891ed7b6dfe7bd [project @ 1993-08-09 01:07:49 by jwe] Initial revision diff -r a2db6687354d -r fbc0f5ebd3e0 src/defaults.h.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/defaults.h.in Mon Aug 09 01:08:10 1993 +0000 @@ -0,0 +1,42 @@ +// defaults.h -*- C++ -*- +/* + +Copyright (C) 1992, 1993 John W. Eaton + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#if !defined (_defaults_h) +#define _defaults_h 1 + +#ifndef DEFAULT_PAGER +#define DEFAULT_PAGER @DEFAULT_PAGER@ +#endif + +#ifndef OCTAVE_HOME +#define OCTAVE_HOME @OCTAVE_HOME@ +#endif + +#endif + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/ diff -r a2db6687354d -r fbc0f5ebd3e0 src/move-if-change --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/move-if-change Mon Aug 09 01:08:10 1993 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Like mv $1 $2, but if the files are the same, just delete $1. +# Status is 0 if $2 is changed, 1 otherwise. + +if test -r $2; then + if cmp $1 $2 > /dev/null; then + echo $2 is unchanged + rm -f $1 + else + mv -f $1 $2 + fi +else + mv -f $1 $2 +fi