Skip to content

Commit d35f7f5

Browse files
committed
Add colophon to show some build info.
1 parent 8b20edb commit d35f7f5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

www/colophon.scrbl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#lang scribble/base
2+
@(require racket/date
3+
racket/port
4+
racket/system
5+
racket/string)
6+
7+
@(define (shell s)
8+
(with-output-to-string (λ () (system s))))
9+
10+
@(define (i s)
11+
(item (verbatim (shell s))))
12+
13+
@title{Colophon}
14+
15+
This document (@string-trim[(shell "git rev-parse --short HEAD")]) was produced on @(date->string (current-date) #t).
16+
17+
System information:
18+
@itemlist[
19+
(i "uname -a")
20+
(i "racket --version")
21+
(i "raco pkg show -u a86 langs")
22+
(i "nasm --version")
23+
(i "gcc --version")]

www/main.scrbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ staff using this @link[feedback]{form}.
105105
@include-section{midterms.scrbl}
106106
@include-section{project.scrbl}
107107
@include-section{software.scrbl}
108+
@include-section{colophon.scrbl}

0 commit comments

Comments
 (0)