Mercurial > hg > octave-lojdl
changeset 12:fbc0f5ebd3e0
[project @ 1993-08-09 01:07:49 by jwe]
Initial revision
author | jwe |
---|---|
date | Mon, 09 Aug 1993 01:08:10 +0000 |
parents | a2db6687354d |
children | 01dd3d6d3b3a |
files | src/defaults.h.in src/move-if-change |
diffstat | 2 files changed, 57 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/src/defaults.h.in @@ -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: *** +*/
new file mode 100755 --- /dev/null +++ b/src/move-if-change @@ -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