Makefile installer done

This commit is contained in:
Sameer Rahmani 2017-04-08 05:59:12 +04:30
parent c663aeb1b8
commit 77ff59a6b3
2 changed files with 19 additions and 12 deletions

2
.gitignore vendored
View File

@ -7,5 +7,5 @@ build.log
packages/
lib/magic-buffer.el
assets/
fg42
./fg42
fonts/

View File

@ -1,12 +1,19 @@
install:
- git submodule init
- git submodule update
- cp -rv ./fonts/* ~/.fonts/
- cp ./config/fg42.user.el ${HOME}/.fg42.el
- echo "#! /bin/sh" > ./fg42
- echo "export FG42_HOME=${HOME}/src/FG42" >> ./fg42
- echo 'emacs --name FG42 --no-site-file --no-site-lisp --no-splash --title FG42 -l $FG42_HOME/fg42-config.el "$$@"' >> ./fg42
- sudo ln -s `pwd`/fg42 /usr/local/bin/fg42
- sudo mkdir -p /usr/share/fg42/
- sudo cp -rv ./share/* /usr/share/fg42/
- echo "Make sure to install external dependencies of FG42. For more info checkout README.md"
@echo "Downloading and installing fonts..."
@mkdir -p ~/.fonts
@wget "https://github.com/FG42/fonts/archive/0.1.0.tar.gz" -O ~/.fonts/fg42.tar.gz
@tar zxf ~/.fonts/fg42.tar.gz -C ~/.fonts --strip 1
@cp ./config/fg42.user.el ${HOME}/.fg42.el
@echo "Creating the link..."
@echo "#! /bin/sh" > ./fg42
@echo "export FG42_HOME=${HOME}/src/FG42" >> ./fg42
@echo 'emacs --name FG42 --no-site-file --no-site-lisp --no-splash --title FG42 -l $FG42_HOME/fg42-config.el "$$@"' >> ./fg42
@sudo rm /usr/local/bin/fg42
@sudo ln -s `pwd`/fg42 /usr/local/bin/fg42
@echo "Copying share files..."
@sudo mkdir -p /usr/share/fg42/
@sudo cp -r ./share/* /usr/share/fg42/
@echo " "
@echo "------------------------------------------------------------------------------------"
@echo "Make sure to install external dependencies of FG42. For more info checkout README.md"
@echo "Enjoy the bless of GNU/Emacs and FG42 :)"