Shell Example
Note:
This version support up to Trac 0.11. later Trac version is not tested here but is supported in forked version at http://trac-hacks.org/wiki/ShellExampleMacro/
We wrote an ShellExample preprocessor macro for trac. It's mainly for giving guide on what/how to do under shell prompt. The main purpose of ShellExample is to separate "user input" from "output", other than having all the beautiful decorations.
{{{
#!ShellExample
$ ./configure --help
...
--enable-abc ......
--enable-def ......
--with-ghi[=dir] ......
...
$ ./configure '--enable-abc' \
'--enable-def' \
--with-ghi='/usr
/local'
(many outputs here)
$ make
(many outputs again)
(now su to root)
$ su
Password:
(type your root password)
# make install
(ok, it's now installed)
}}}
read as
$ ./configure '--enable-abc' \ '--enable-def' \ --with-ghi='/usr/local def' (many outputs here) $ make (many outputs again) (now su to root) $ su Password: (type your root password) # make install (ok, it's now installed)
Download the attachment, untar it with tar -zxf, then do ./setup.py, restart trac, enable it in admin or ini, restart trac again
Other supported patterns
root@host # ... user@host $ ... ~ $ .. ~/path/ $ .. /path/ $ .. C:\> C:\Documents and Settings\username\>
Last modified 6 years ago
Last modified on 2011-04-28T12:33:16Z
Attachments (1)
- shellexample-0.8.0.tar.gz (2.8 KB) - added by moo 9 years ago.
Download all attachments as: .zip

