File: make-autodoc.sh

package info (click to toggle)
acl2 8.5dfsg-5
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 991,452 kB
  • sloc: lisp: 15,567,759; javascript: 22,820; cpp: 13,929; ansic: 12,092; perl: 7,150; java: 4,405; xml: 3,884; makefile: 3,507; sh: 3,187; ruby: 2,633; ml: 763; python: 746; yacc: 723; awk: 295; csh: 186; php: 171; lex: 154; tcl: 49; asm: 23; haskell: 17
file content (57 lines) | stat: -rw-r--r-- 1,537 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh

set -e

HERE=`pwd`

echo "Make sure autodoc is up to date."
omake .PHONY/build/all .PHONY/clauses/all .PHONY/tactics/all .PHONY/rewrite/all -j 64

echo "Remove old autodoc archives"

rm -f $HERE/build-autodoc.tar.gz
rm -f $HERE/clauses-autodoc.tar.gz
rm -f $HERE/lift-autodoc.tar.gz
rm -f $HERE/traces-autodoc.tar.gz
rm -f $HERE/assms-autodoc.tar.gz
rm -f $HERE/rewrite-autodoc.tar.gz
rm -f $HERE/tactic-autodoc.tar.gz
rm -f $HERE/diss-autodoc.tar.gz

echo "Build new autodoc archives"

cd $HERE/build; tar cvfz $HERE/build-autodoc.tar.gz autodoc
cd $HERE/clauses; tar cvfz $HERE/clauses-autodoc.tar.gz autodoc
cd $HERE/clauses/if-lifting; tar cvfz $HERE/lift-autodoc.tar.gz autodoc
cd $HERE/rewrite/assms; tar cvfz $HERE/assms-autodoc.tar.gz autodoc
cd $HERE/rewrite/traces; tar cvfz $HERE/traces-autodoc.tar.gz autodoc
cd $HERE/rewrite; tar cvfz $HERE/rewrite-autodoc.tar.gz autodoc
cd $HERE/tactics; tar cvfz $HERE/tactic-autodoc.tar.gz autodoc


echo "Build consolidated autodoc archive."

cd $HERE

tar cvfz \
    diss-autodoc.tar.gz \
    build-autodoc.tar.gz \
    clauses-autodoc.tar.gz \
    lift-autodoc.tar.gz \
    traces-autodoc.tar.gz \
    assms-autodoc.tar.gz \
    rewrite-autodoc.tar.gz \
    tactic-autodoc.tar.gz

echo "Clean up intermediate archives"

rm -f $HERE/build-autodoc.tar.gz
rm -f $HERE/clauses-autodoc.tar.gz
rm -f $HERE/lift-autodoc.tar.gz
rm -f $HERE/traces-autodoc.tar.gz
rm -f $HERE/assms-autodoc.tar.gz
rm -f $HERE/rewrite-autodoc.tar.gz
rm -f $HERE/tactic-autodoc.tar.gz


echo "All done"