##// END OF EJS Templates
Document building with Roswell
naryl -
r57:ab1453cd default
parent child Browse files
Show More
@@ -0,0 +1,25 b''
1 #!/bin/sh
2 #|-*- mode:lisp -*-|#
3 #|
4 exec ros -Q -- $0 "$@"
5 |#
6
7 (defpackage :ros.script.txt2web.3802182867
8 (:use :cl))
9 (in-package :ros.script.txt2web.3802182867)
10
11 (defparameter *green* (format nil "~c[32m" #\Esc))
12 (defparameter *yellow* (format nil "~c[33m" #\Esc))
13 (defparameter *reset* (format nil "~c[0m" #\Esc))
14
15 (ros:ensure-asdf)
16 (push (uiop/pathname:pathname-parent-directory-pathname
17 (uiop:getcwd))
18 ql:*local-project-directories*)
19
20 (format t "** ~ALoading ~Atxt2web ~Asystem~A...~%" *green* *yellow* *green* *reset*)
21 (ql:quickload :txt2web :silent t)
22
23 (defun main (&rest argv)
24 (uiop:symbol-call :txt2web :entry-point argv))
25 ;;; vim: set ft=lisp lisp:
@@ -1,4 +1,3 b''
1
1 1. Install Roswell using either your distribution's package manager or following https://github.com/roswell/roswell/wiki/Installation
2 1. Install sbcl using your distribution's package manager, or download it from https://sbcl.org
2 2. When installing Roswell for the first time run `ros` with no arguments to setup the environment
3 2. Install quicklisp from https://quicklisp.org E.g. `wget https://beta.quicklisp.org/quicklisp.lisp && sbcl --load quicklisp.org` then follow instructions.
3 3. Run `make` to build the binary
4 3. `make`
@@ -1,32 +1,50 b''
1
1
2 BIN = txt2web
2 BIN = txt2web
3 DIST = $(BIN).tar.xz
3 DIST = $(BIN).tar.xz
4 SCRIPT = $(BIN).ros
4 SCRIPT = $(BIN).ros
5
5
6 BLACK := $(shell tput setaf 0)
7 RED := $(shell tput setaf 1)
8 GREEN := $(shell tput setaf 2)
9 YELLOW := $(shell tput setaf 3)
10 LIGHTPURPLE := $(shell tput setaf 4)
11 PURPLE := $(shell tput setaf 5)
12 BLUE := $(shell tput setaf 6)
13 WHITE := $(shell tput setaf 7)
14
15 RESET := $(shell tput sgr0)
16
6 all: $(BIN)
17 all: $(BIN)
7
18
19 run:
20 bin/${SCRIPT}
21
8 dist: $(DIST)
22 dist: $(DIST)
9
23
10 graphs: diagrams.png
24 graphs: diagrams.png
11
25
12 $(BIN): bin/$(BIN)
26 $(BIN): bin/$(BIN)
13 ln -f $<
27 ln -f $<
14
28
15 bin/$(BIN): *.asd src/*.lisp src/*.ps strings/*.sexp bin/$(BIN).ros
29 bin/$(BIN): *.asd src/*.lisp src/*.ps strings/*.sexp bin/$(BIN).ros
30 @echo
31 @echo "* ${GREEN}Building ${YELLOW}${BIN} ${GREEN}binary${RESET}..."
16 ros build bin/$(SCRIPT)
32 ros build bin/$(SCRIPT)
17
33
18 %.png: %.dot
34 %.png: %.dot
19 dot $< -T png -o $@
35 dot $< -T png -o $@
20
36
21 $(DIST): $(BIN) extras/*
37 $(DIST): $(BIN) extras/*
38 @echo
39 @echo "* ${GREEN}Packaging${RESET}..."
22 tar cfvJ $@ $< extras
40 tar cfvJ $@ $< extras
23
41
24 clean:
42 clean:
25 rm -f $(BIN) bin/$(BIN) $(DIST)
43 rm -f $(BIN) bin/$(BIN) $(DIST)
26
44
27 clean-cache:
45 clean-cache:
28 -rm -rf ~/.cache/common-lisp
46 -rm -rf ~/.cache/common-lisp
29
47
30 fresh: clean clean-cache all
48 fresh: clean clean-cache all
31
49
32 .PHONY: all graphs clean clean-cache fresh
50 .PHONY: all run graphs clean clean-cache fresh
General Comments 0
You need to be logged in to leave comments. Login now