Skip to content
Snippets Groups Projects
Commit 71159192 authored by pmai's avatar pmai
Browse files

Added -nositeinit commandline switch, that suppresses loading of the

site-init file.
parent 05ad7b8f
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain. ;;; Carnegie Mellon University, and has been placed in the public domain.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/commandline.lisp,v 1.11 2001/03/04 23:37:32 pw Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/commandline.lisp,v 1.12 2001/12/08 18:42:39 pmai Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -210,6 +210,7 @@ ...@@ -210,6 +210,7 @@
(defswitch "core") (defswitch "core")
(defswitch "init") (defswitch "init")
(defswitch "noinit") (defswitch "noinit")
(defswitch "nositeinit")
(defswitch "hinit") (defswitch "hinit")
(defswitch "batch") (defswitch "batch")
(defswitch "dynamic-space-size") (defswitch "dynamic-space-size")
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain. ;;; Carnegie Mellon University, and has been placed in the public domain.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/save.lisp,v 1.41 2001/11/29 01:46:58 pmai Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/save.lisp,v 1.42 2001/12/08 18:42:39 pmai Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -171,7 +171,9 @@ ...@@ -171,7 +171,9 @@
:test #'(lambda (x y) :test #'(lambda (x y)
(declare (simple-string x y)) (declare (simple-string x y))
(string-equal x y))))) (string-equal x y)))))
(when site-init (when (and site-init
(not (and process-command-line
(find-switch "nositeinit"))))
(load site-init :if-does-not-exist nil :verbose nil)) (load site-init :if-does-not-exist nil :verbose nil))
(when (and process-command-line (find-switch "edit")) (when (and process-command-line (find-switch "edit"))
(setf *editor-lisp-p* t)) (setf *editor-lisp-p* t))
......
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
%% distribution, and must be obtained from a repository. At this time %% distribution, and must be obtained from a repository. At this time
%% I was able to fetch from %% I was able to fetch from
%% ftp.cdrom.com:pub/tex/ctan/macros/latex/contrib/supported/ %% ftp.cdrom.com:pub/tex/ctan/macros/latex/contrib/supported/
%% camel/index.ins %% camel/index.ins
%% camel/index.dtx %% camel/index.dtx
%% calc/calc.ins %% calc/calc.ins
%% calc/calc.dtx %% calc/calc.dtx
%% changebar/changebar.ins %% changebar/changebar.ins
%% changebar/changebar.dtx %% changebar/changebar.dtx
%% One runs latex on the .ins file to produce .tex and/or .sty %% One runs latex on the .ins file to produce .tex and/or .sty
%% files that must be put in a path searched by latex. %% files that must be put in a path searched by latex.
%% %%
...@@ -1135,6 +1135,11 @@ cmucl(1). Currently Lisp accepts the following switches: ...@@ -1135,6 +1135,11 @@ cmucl(1). Currently Lisp accepts the following switches:
Also, this switch suppresses the loading of a hemlock init file when Also, this switch suppresses the loading of a hemlock init file when
Hemlock is started up with the \code{-edit} switch. Hemlock is started up with the \code{-edit} switch.
\item[\code{-nositeinit}] accepts no arguments and specifies that the
site-init file, which can contain site specific initialization code,
should not be loaded during the normal start up sequence, even if it
exists.
\item[\code{-load}] accepts an argument which should be the name of a \item[\code{-load}] accepts an argument which should be the name of a
file to load into Lisp before entering Lisp's read-eval-print loop. file to load into Lisp before entering Lisp's read-eval-print loop.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.\" If you want to use this code or any part of CMU Common Lisp, please contact .\" If you want to use this code or any part of CMU Common Lisp, please contact
.\" Scott Fahlman or slisp-group@cs.cmu.edu. .\" Scott Fahlman or slisp-group@cs.cmu.edu.
.\" .\"
.\"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/general-info/lisp.1,v 1.6 1997/07/21 12:22:37 pw Exp $ .\"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/general-info/lisp.1,v 1.7 2001/12/08 18:42:40 pmai Exp $
.\" .\"
.\" ********************************************************************** .\" **********************************************************************
.\" .\"
...@@ -64,6 +64,9 @@ Suppresses loading of the init file, and also prevents \-edit from loading the ...@@ -64,6 +64,9 @@ Suppresses loading of the init file, and also prevents \-edit from loading the
.I Hemlock .I Hemlock
init file. init file.
.TP .TP
.BR \-nositeinit
Suppresses loading of the site-init site specific initialization file.
.TP
.BR \-load " filename" .BR \-load " filename"
Loads the specified file into Lisp before entering Lisp's read-eval-print loop. Loads the specified file into Lisp before entering Lisp's read-eval-print loop.
.TP .TP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment