From bafd15460b49d64fd8df88ca9d2cbcbf8cb86c88 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Mon, 16 Mar 2020 20:58:56 +0000 Subject: [PATCH] build.el has been added --- .gitlab-ci.yml | 4 ++-- build.el | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 build.el diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 09f01d8..9d3fceb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/build.el b/build.el new file mode 100644 index 0000000..b005646 --- /dev/null +++ b/build.el @@ -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)