tamago-4.0.3
[elisp/tamago.git] / make-insdirs.el
1 ;;; make-emacs-conf.el --- 
2
3 ;; Copyright (C) 2000 ElectroTechnical Laboratory
4 ;; Copyright (C) 2000 TOMURA Satoru <tomura@etl.go.jp>
5 ;; Licensed to Free Software Foundation, Inc.
6
7 ;; Author: TOMURA Satoru <tomura@etl.go.jp>
8
9 ;; Maintainer: TOMURA Satoru <tomura@etl.go.jp>
10
11 ;; Keywords: mule, multilingual, input method
12
13 ;; This file is part of EGG.
14
15 ;; EGG is free software; you can redistribute it and/or modify
16 ;; it under the terms of the GNU General Public License as published by
17 ;; the Free Software Foundation; either version 2, or (at your option)
18 ;; any later version.
19
20 ;; EGG is distributed in the hope that it will be useful,
21 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 ;; GNU General Public License for more details.
24
25 ;; You should have received a copy of the GNU General Public License
26 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
27 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
28 ;; Boston, MA 02111-1307, USA.
29
30 ;;; Commentary:
31
32 ;;; Code:
33
34 (defun make-emacs-configuration-file ()
35   (with-temp-buffer
36     (let* ((emacs-etc-directory data-directory)
37            (this-version-directory (file-name-directory (directory-file-name emacs-etc-directory)))
38            (site-directory (file-name-directory (directory-file-name this-version-directory))))
39       (insert 
40        ;;; INSDIR=/usr/local/share/emacs/site-lisp
41        (format "INSDIR=%s\n"
42                (expand-file-name "site-lisp" site-directory)
43                )
44        ;;; VINSDIR=/usr/local/share/emacs/20.5/site-lisp        
45        (format "VINSDIR=%s\n"
46                (expand-file-name "site-lisp" this-version-directory)
47                ))
48       (write-file "insdirs" nil))))
49
50 (make-emacs-configuration-file)