build.el has been added

This commit is contained in:
Sameer Rahmani 2020-03-16 20:58:56 +00:00
parent 0dbebb14bf
commit bafd15460b
2 changed files with 23 additions and 2 deletions

View File

@ -6,6 +6,6 @@ build:
stage: build
before_script:
- apt update && apt install -y make wget git emacs sudo
- git clone -b fpkg-v2 https://gitlab.com/FG42/FG42 ~/.fg42/ && cd ~/.fg42/ && make install && touch empty.el
- git clone -b fpkg-v2 https://gitlab.com/FG42/FG42 ~/.fg42/ && cd ~/.fg42/ && make install
script:
- fg42 -nw -l ~/.fg42/fg42-config.el --script empty.el
- fg42 -nw --script build.el

21
build.el Normal file
View File

@ -0,0 +1,21 @@
(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)