# HG changeset patch # User jwe # Date 780262169 0 # Node ID 9b930afbf4771e9d5834090f7011a7ca0c87ef6f # Parent 75c986b14c067e4bb49808cf713a2bf51ed9a573 [project @ 1994-09-22 19:27:48 by jwe] diff --git a/scripts/Makefile.in b/scripts/Makefile.in --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -25,7 +25,8 @@ DISTFILES = Makefile.in $(SOURCES) SUBDIRS = control elfun general image linear-algebra miscellaneous \ - plot polynomial set signal specfun special-matrix statistics + plot polynomial set signal specfun special-matrix startup \ + statistics DISTSUBDIRS = $(SUBDIRS) diff --git a/src/variables.cc b/src/variables.cc --- a/src/variables.cc +++ b/src/variables.cc @@ -445,10 +445,8 @@ char * get_site_defaults (void) { - static char *sd = 0; - delete [] sd; - char *libdir = octave_lib_dir (); - sd = strconcat (libdir, "/octaverc"); + static char *startupdir = subst_octave_home (OCTAVE_STARTUPFILEDIR); + static char *sd = strconcat (startupdir, "/octaverc"); return sd; }