File: 01-README.examples.dpatch

package info (click to toggle)
libtioga-ruby 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,956 kB
  • ctags: 3,257
  • sloc: ansic: 31,801; ruby: 16,346; sh: 172; makefile: 114
file content (60 lines) | stat: -rw-r--r-- 1,844 bytes parent folder | download | duplicates (2)
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
58
59
60
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-README.examples.dpatch by  <vincent.fourmond@9online.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: A file explaining how to use the examples.

@DPATCH@
diff -urNad tioga-1.2.0~/README.examples tioga-1.2.0/README.examples
--- tioga-1.2.0~/README.examples	1970-01-01 01:00:00.000000000 +0100
+++ tioga-1.2.0/README.examples	2006-10-04 20:02:03.000000000 +0200
@@ -0,0 +1,49 @@
+Tioga package examples
+
+  The examples are contained in the samples.tar.gz in this directory. You should unpack this archive 
+to take advantage of the examples.
+
+  The examples basically into two different categories:
+
+* most of the ruby files from the subdirectories are for use with irb. You should have irb and the 
+following lines in your ~/.irbrc
+
+require 'Tioga/irb_tioga.rb'
+include Tioga::IRB_Tioga
+
+ to include specific interactive facilities (or alternatively, copy the irbrc file to ~/.irbrc). Then, 
+load the file you're interested in with (you have to be in the directory where the file resides, else 
+the output will fail).
+
+load_figures 'file.rb'
+
+  list the plots available with:
+
+ls
+
+  and make the plot you want with:
+
+mk n
+
+  where n is it's number in the output of ls. Alternatively, you can use 
+
+ma
+
+  to make all the plots.
+
+help
+
+  will give you some small help about the various commands available, provided that the rdoc
+package is installed on your machine.
+
+  Please note that the output of the given plots will reside in a subdirectory whose name finishes 
+with _out.
+
+  For more detailed explanations, see 
+
+http://theory.kitp.ucsb.edu/~paxton/tioga_doc/classes/Tioga/Tutorial/Sample.html
+
+
+  * the sine.rb ruby file is a standalone program. Just run ruby sine.rb, and have a look at the files 
+produced !
+