source: project/release/4/chickadee/trunk/chickadee.setup @ 25601

Last change on this file since 25601 was 25601, checked in by Jim Ursetto, 9 years ago

chickadee 0.9.11: Improve response time & Firefox rendering with <script> at end; fix TOC flash

Move <script>s to end of HTML, improving responsiveness, avoiding starting mid-page
in Firefox, and correcting flash of unhidden TOC. Introduce js/no-js class into
<html> a la Modernizr, though we do it with a one-line inline script.

File size: 1.3 KB
Line 
1;; -*- scheme -*-
2
3(define +version+ "0.9.11")
4
5(compile -s -O2 -d1 -S chickadee.scm -j chickadee)
6(compile -s -O2 -d0 chickadee.import.scm)
7(compile    -O2 -d0 -S -o chickadee chickadee-cmd.scm)
8
9(install-extension
10  'chickadee
11  '("chickadee.so" "chickadee.import.so")
12  `((version ,+version+)))
13(install-program
14 'chickadee-cmd
15 '("chickadee")
16 `((version ,+version+)))
17
18;; Tree installation
19
20(if (not (setup-install-mode))
21  (exit))
22
23(define +basedir+ (make-pathname (chicken-home) "chickadee"))
24(define +root+ (make-pathname +basedir+ "root"))
25(define +cdoc+ (make-pathname +root+ "cdoc"))
26
27;; create-directory/parents required to respect sudo; I don't
28;; actually want it to create a tree.
29(create-directory/parents +basedir+)
30(create-directory/parents +root+)
31(create-directory/parents +cdoc+)
32(create-directory/parents (make-pathname +basedir+ "logs"))
33(copy-file "chickadee-jquery.js" +cdoc+)
34(copy-file "chickadee.css" +cdoc+)
35(copy-file "jquery.metadata.min.js"
36           (make-pathname +cdoc+
37                          "jquery.metadata.2.1.min.js"))
38(copy-file "mag.png" +cdoc+)
39(copy-file "chickadee-config.scm"
40           (make-pathname +basedir+
41                          "config.scm"))
42(copy-file "chickadee-config-nginx.scm"
43           (make-pathname +basedir+
44                          "config-nginx.scm"))
45
Note: See TracBrowser for help on using the repository browser.