tamago-4.0.6
[elisp/tamago.git] / make-dirs.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* ((etc-dir data-directory)
37            (ver-dir (file-name-directory (substring etc-dir 0 -1)))
38            (emacs-dir (file-name-directory (substring ver-dir 0 -1))))
39       (insert 
40        ;;; INSDIR=/usr/local/share/emacs/site-lisp
41        (format "INSDIR=%s/site-lisp\n"
42                (substring emacs-dir 0 -1))
43        ;;; VINSDIR=/usr/local/share/emacs/20.5/site-lisp        
44        (format "VINSDIR=%s/site-lisp\n"
45                (substring ver-dir 0 -1)))
46       (write-file "dirs" nil))))
47
48 (make-emacs-configuration-file)