OpenCores
URL https://opencores.org/ocsvn/pavr/pavr/trunk

Subversion Repositories pavr

[/] [pavr/] [tags/] [noReleaseTag/] [tools/] [backup/] [build_release_html.tcl] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 doru
# Procedure for printing text.
2
proc Print {txt} {
3
}
4
 
5
# -------------------------------------
6
# Set source and destination paths.
7
set src             ../..
8
set dst             pavr
9
set archiveFileName pavr-release-html.zip
10
 
11
Print "Deleting existing release directory structure...\n"
12
file delete -force $dst
13
 
14
Print "Creating temporary release directory structure...\n"
15
file mkdir $dst
16
file copy $src/doc $dst
17
file copy $src/src $dst
18
 
19
cd $dst/doc
20
Print "Cleaning documentation...\n"
21
catch {exec clean.bat} tmpMsg
22
Print "Compiling documentation...\n"
23
catch {exec compile.bat} tmpMsg
24
 
25
Print "Deleting temporary sources of the documentation...\n"
26
catch {
27
   set fNames [glob ./*.*]
28
   foreach {fName} "$fNames" {
29
      file delete -force $fName
30
   }
31
}
32
cd ../
33
 
34
Print "Building release package...\n"
35
catch {
36
   set fNames [glob ./doc/html/*.*]
37
   foreach {fName} "$fNames" {
38
      file copy $fName ./
39
   }
40
}
41
 
42
file delete -force ./doc
43
file delete -force ./src
44
 
45
Print "Archiving...\n"
46
cd ../
47
catch {exec wzzip $archiveFileName $dst} tmpMsg
48
 
49
file delete -force $dst
50
 
51
exit

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.