48 lines
1.7 KiB
EmacsLisp
48 lines
1.7 KiB
EmacsLisp
;;; build --- build script for FG42
|
|
;;
|
|
;; Copyright (C) 2010-2020 Sameer Rahmani <lxsameer@gnu.org>
|
|
;;
|
|
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
|
;; Keywords: lisp fg42 IDE package manager
|
|
;; Version: 1.0.0
|
|
;;
|
|
;; This program 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 3 of the License, or
|
|
;; (at your option) any later version.
|
|
;;
|
|
;; This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
;;
|
|
;;; Commentary:
|
|
;;; Code:
|
|
(add-to-list 'load-path (concat (getenv "HOME") ".fg42/lib"))
|
|
|
|
(defvar bootstrap-version nil
|
|
"Bootstrap version of straight. This var is used in straight's installer.")
|
|
|
|
(defun fpkg-initialize ()
|
|
"Initilize the straight.e package manager and setup necessary hooks."
|
|
(let ((bootstrap-file "~/.fg42/.fpkg/straight/repos/straight.el/bootstrap.el")
|
|
(bootstrap-version 5))
|
|
|
|
(setq straight-base-dir "~/.fg42/.fpkg/")
|
|
(if (not (file-exists-p bootstrap-file))
|
|
(with-current-buffer
|
|
(url-retrieve-synchronously
|
|
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
|
'silent 'inhibit-cookies)
|
|
(goto-char (point-max))
|
|
(eval-print-last-sexp))
|
|
(load bootstrap-file nil 'nomessage))))
|
|
|
|
(fpkg-initialize)
|
|
|
|
(provide 'build)
|
|
;;; build.el ends here
|