PageTemplate 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes +24 -0
- data/MANIFEST +0 -1
- data/README.txt +10 -8
- data/Rakefile +30 -9
- data/lib/PageTemplate/case.rb +72 -0
- data/lib/PageTemplate/commands.rb +500 -0
- data/lib/PageTemplate/parser.rb +373 -0
- data/lib/PageTemplate.rb +47 -991
- data/setup-usage.txt +129 -0
- data/setup.rb +1360 -0
- data/tdata/dummy.txt +2 -0
- data/test.rb +616 -0
- metadata +13 -169
- data/CVS/Entries +0 -10
- data/CVS/Repository +0 -1
- data/CVS/Root +0 -1
- data/Changes~ +0 -7
- data/InstalledFiles +0 -7
- data/Rakefile~ +0 -54
- data/TC_PageTemplate.rb +0 -974
- data/TC_PageTemplate.rb~ +0 -965
- data/config.save +0 -12
- data/doc/classes/BlockCommand.html +0 -229
- data/doc/classes/BlockCommand.src/M000004.html +0 -18
- data/doc/classes/BlockCommand.src/M000005.html +0 -25
- data/doc/classes/BlockCommand.src/M000006.html +0 -18
- data/doc/classes/BlockCommand.src/M000007.html +0 -23
- data/doc/classes/BlockCommand.src/M000008.html +0 -24
- data/doc/classes/Command.html +0 -167
- data/doc/classes/Command.src/M000032.html +0 -19
- data/doc/classes/Command.src/M000033.html +0 -18
- data/doc/classes/CommentCommand.html +0 -146
- data/doc/classes/CommentCommand.src/M000009.html +0 -18
- data/doc/classes/IfCommand.html +0 -193
- data/doc/classes/IfCommand.src/M000042.html +0 -19
- data/doc/classes/IfCommand.src/M000043.html +0 -20
- data/doc/classes/IfCommand.src/M000044.html +0 -20
- data/doc/classes/IfElseCommand.html +0 -189
- data/doc/classes/IfElseCommand.src/M000025.html +0 -19
- data/doc/classes/IfElseCommand.src/M000026.html +0 -23
- data/doc/classes/IfElseCommand.src/M000027.html +0 -20
- data/doc/classes/IncludeCommand.html +0 -171
- data/doc/classes/IncludeCommand.src/M000019.html +0 -26
- data/doc/classes/IncludeCommand.src/M000020.html +0 -28
- data/doc/classes/IncludeCommand.src/M000021.html +0 -18
- data/doc/classes/IncludeCommandError.html +0 -118
- data/doc/classes/LoopCommand.html +0 -197
- data/doc/classes/LoopCommand.src/M000001.html +0 -19
- data/doc/classes/LoopCommand.src/M000002.html +0 -42
- data/doc/classes/LoopCommand.src/M000003.html +0 -20
- data/doc/classes/LoopElseCommand.html +0 -190
- data/doc/classes/LoopElseCommand.src/M000022.html +0 -19
- data/doc/classes/LoopElseCommand.src/M000023.html +0 -23
- data/doc/classes/LoopElseCommand.src/M000024.html +0 -20
- data/doc/classes/Namespace.html +0 -297
- data/doc/classes/Namespace.src/M000034.html +0 -19
- data/doc/classes/Namespace.src/M000035.html +0 -18
- data/doc/classes/Namespace.src/M000036.html +0 -18
- data/doc/classes/Namespace.src/M000037.html +0 -19
- data/doc/classes/Namespace.src/M000038.html +0 -36
- data/doc/classes/Namespace.src/M000039.html +0 -21
- data/doc/classes/Namespace.src/M000040.html +0 -18
- data/doc/classes/Namespace.src/M000041.html +0 -18
- data/doc/classes/PageTemplate.html +0 -380
- data/doc/classes/PageTemplate.src/M000010.html +0 -49
- data/doc/classes/PageTemplate.src/M000011.html +0 -18
- data/doc/classes/PageTemplate.src/M000012.html +0 -29
- data/doc/classes/PageTemplate.src/M000013.html +0 -18
- data/doc/classes/PageTemplate.src/M000014.html +0 -18
- data/doc/classes/PageTemplate.src/M000015.html +0 -18
- data/doc/classes/PageTemplate.src/M000016.html +0 -18
- data/doc/classes/PageTemplate.src/M000017.html +0 -18
- data/doc/classes/PageTemplate.src/M000018.html +0 -19
- data/doc/classes/Syntax/CachedParser.html +0 -163
- data/doc/classes/Syntax/CachedParser.src/M000048.html +0 -19
- data/doc/classes/Syntax/CachedParser.src/M000049.html +0 -53
- data/doc/classes/Syntax/Glossary.html +0 -251
- data/doc/classes/Syntax/Glossary.src/M000050.html +0 -20
- data/doc/classes/Syntax/Glossary.src/M000051.html +0 -29
- data/doc/classes/Syntax/Parser.html +0 -261
- data/doc/classes/Syntax/Parser.src/M000052.html +0 -22
- data/doc/classes/Syntax/Parser.src/M000053.html +0 -36
- data/doc/classes/Syntax/Parser.src/M000054.html +0 -18
- data/doc/classes/Syntax/Parser.src/M000055.html +0 -21
- data/doc/classes/Syntax/Parser.src/M000056.html +0 -53
- data/doc/classes/Syntax/Parser.src/M000057.html +0 -111
- data/doc/classes/Syntax.html +0 -139
- data/doc/classes/TextCommand.html +0 -185
- data/doc/classes/TextCommand.src/M000045.html +0 -18
- data/doc/classes/TextCommand.src/M000046.html +0 -18
- data/doc/classes/TextCommand.src/M000047.html +0 -18
- data/doc/classes/UnlessCommand.html +0 -151
- data/doc/classes/UnlessCommand.src/M000028.html +0 -20
- data/doc/classes/ValueCommand.html +0 -186
- data/doc/classes/ValueCommand.src/M000029.html +0 -18
- data/doc/classes/ValueCommand.src/M000030.html +0 -18
- data/doc/classes/ValueCommand.src/M000031.html +0 -20
- data/doc/created.rid +0 -1
- data/doc/files/README_txt.html +0 -224
- data/doc/files/lib/PageTemplate_rb.html +0 -119
- data/doc/fr_class_index.html +0 -44
- data/doc/fr_file_index.html +0 -28
- data/doc/fr_method_index.html +0 -83
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
- data/install.rb +0 -1015
- data/lib/CVS/Entries +0 -2
- data/lib/CVS/Repository +0 -1
- data/lib/CVS/Root +0 -1
- data/lib/PageTemplate.rb~ +0 -1004
- data/pkg/PageTemplate-1.2.0.gem +0 -0
- data/tdata/CVS/Entries +0 -28
- data/tdata/CVS/Repository +0 -1
- data/tdata/CVS/Root +0 -1
- data/tdata/cm.txt +0 -3
- data/tdata/complex.txt +0 -116
- data/tdata/i1.txt +0 -1
- data/tdata/i2.txt +0 -7
- data/tdata/ib1.txt +0 -7
- data/tdata/ib2.txt +0 -13
- data/tdata/ie1.txt +0 -4
- data/tdata/ie2.txt +0 -15
- data/tdata/include.1.txt +0 -1
- data/tdata/include.2.txt +0 -1
- data/tdata/include.3.txt +0 -1
- data/tdata/include.4.nf.out.txt +0 -2
- data/tdata/include.4.out.txt +0 -3
- data/tdata/include.4.txt +0 -2
- data/tdata/include.4a.txt +0 -1
- data/tdata/include.4b.txt +0 -2
- data/tdata/include.5.txt +0 -2
- data/tdata/l1.txt +0 -5
- data/tdata/l2.txt +0 -7
- data/tdata/metadata.1.txt +0 -5
- data/tdata/metadata.2.txt +0 -5
- data/tdata/metadata.3.txt +0 -5
- data/tdata/metadata.4.txt +0 -5
- data/tdata/nm.txt +0 -4
- data/tdata/p/CVS/Entries +0 -5
- data/tdata/p/CVS/Repository +0 -1
- data/tdata/p/CVS/Root +0 -1
- data/tdata/p/CVS/b2.txt,t +0 -0
- data/tdata/p/_b1.txt +0 -0
- data/tdata/p/b1.txt +0 -4
- data/tdata/p/b2.txt +0 -4
- data/tdata/p/b2.txt~ +0 -4
- data/tdata/p/cb1.txt +0 -4
- data/tdata/t.txt +0 -2
- data/tdata/v1.txt +0 -11
- data/tdata/v2.txt +0 -11
data/setup-usage.txt
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
Installing Programs with setup.rb
|
2
|
+
=================================
|
3
|
+
|
4
|
+
Quick Start
|
5
|
+
-----------
|
6
|
+
|
7
|
+
Type this (You might needs super user previledge):
|
8
|
+
|
9
|
+
($ su)
|
10
|
+
# ruby setup.rb
|
11
|
+
|
12
|
+
If you want to install a program in to your home directory
|
13
|
+
($HOME), use following instead:
|
14
|
+
|
15
|
+
$ ruby setup.rb all --prefix=$HOME
|
16
|
+
|
17
|
+
|
18
|
+
Detailed Installtion Process
|
19
|
+
----------------------------
|
20
|
+
|
21
|
+
setup.rb invokes installation by three steps. There are
|
22
|
+
"config", "setup" and "install". You can invoke each steps
|
23
|
+
separately as following:
|
24
|
+
|
25
|
+
$ ruby setup.rb config
|
26
|
+
$ ruby setup.rb setup
|
27
|
+
# ruby setup.rb install
|
28
|
+
|
29
|
+
You can controll installation process by giving detailed
|
30
|
+
options for each tasks. For example, --bin-dir=$HOME/bin
|
31
|
+
let setup.rb install commands in $HOME/bin.
|
32
|
+
|
33
|
+
For details, see "Task Options".
|
34
|
+
|
35
|
+
Global Options
|
36
|
+
--------------
|
37
|
+
|
38
|
+
"Global Option" is a command line option which you can use
|
39
|
+
for all tasks. You must give a global option before any task
|
40
|
+
name.
|
41
|
+
|
42
|
+
-q,--quiet
|
43
|
+
suppress message outputs
|
44
|
+
--verbose
|
45
|
+
output messages verbosely (default)
|
46
|
+
-h,--help
|
47
|
+
prints help and quit
|
48
|
+
-v,--version
|
49
|
+
prints version and quit
|
50
|
+
--copyright
|
51
|
+
prints copyright and quit
|
52
|
+
|
53
|
+
Tasks
|
54
|
+
-----
|
55
|
+
These are acceptable tasks:
|
56
|
+
all
|
57
|
+
Invokes `config', `setup', then `install'.
|
58
|
+
Task options for all is same with config.
|
59
|
+
config
|
60
|
+
Checks and saves configurations.
|
61
|
+
show
|
62
|
+
Prints current configurations.
|
63
|
+
setup
|
64
|
+
Compiles ruby extentions.
|
65
|
+
install
|
66
|
+
Installs files.
|
67
|
+
clean
|
68
|
+
Removes created files.
|
69
|
+
distclean
|
70
|
+
Removes all created files.
|
71
|
+
|
72
|
+
Task Options for CONFIG/ALL
|
73
|
+
---------------------------
|
74
|
+
|
75
|
+
--prefix=PATH
|
76
|
+
a prefix of the installing directory path
|
77
|
+
--stdruby=PATH
|
78
|
+
the directory for standard ruby libraries
|
79
|
+
--siterubycommon=PATH
|
80
|
+
the directory for version-independent non-standard
|
81
|
+
ruby libraries
|
82
|
+
--siteruby=PATH
|
83
|
+
the directory for non-standard ruby libraries
|
84
|
+
--bindir=PATH
|
85
|
+
the directory for commands
|
86
|
+
--rbdir=PATH
|
87
|
+
the directory for ruby scripts
|
88
|
+
--sodir=PATH
|
89
|
+
the directory for ruby extentions
|
90
|
+
--datadir=PATH
|
91
|
+
the directory for shared data
|
92
|
+
--rubypath=PATH
|
93
|
+
path to set to #! line
|
94
|
+
--rubyprog=PATH
|
95
|
+
the ruby program using for installation
|
96
|
+
--makeprog=NAME
|
97
|
+
the make program to compile ruby extentions
|
98
|
+
--without-ext
|
99
|
+
forces to setup.rb never to compile/install
|
100
|
+
ruby extentions.
|
101
|
+
--rbconfig=PATH
|
102
|
+
your rbconfig.rb to load
|
103
|
+
|
104
|
+
You can view default values of these options by typing
|
105
|
+
|
106
|
+
$ ruby setup.rb --help
|
107
|
+
|
108
|
+
|
109
|
+
If there's the directory named "packages",
|
110
|
+
You can also use these options:
|
111
|
+
--with=NAME,NAME,NAME...
|
112
|
+
Package names which you want to install.
|
113
|
+
--without=NAME,NAME,NAME...
|
114
|
+
Package names which you do not want to install.
|
115
|
+
|
116
|
+
[NOTE] You can pass options for extconf.rb like this:
|
117
|
+
|
118
|
+
ruby setup.rb config -- --with-tklib=/usr/lib/libtk-ja.so.8.0
|
119
|
+
|
120
|
+
|
121
|
+
Task Options for INSTALL
|
122
|
+
------------------------
|
123
|
+
|
124
|
+
--no-harm
|
125
|
+
prints what to do and done nothing really.
|
126
|
+
--prefix=PATH
|
127
|
+
The prefix of the installing directory path.
|
128
|
+
This option may help binary package maintainers.
|
129
|
+
A default value is an empty string.
|