Changes between Version 18 and Version 19 of WikiStart
- Timestamp:
- Nov 16, 2007, 12:13:14 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v18 v19 13 13 = Technical ideas around the project-builder.org (aka pb) project = 14 14 15 * use perl. It makes coding so m ore efficient, powerful and also fun15 * use perl. It makes coding so much more efficient, powerful and also fun 16 16 * use AppConfig. A lot of information is managed under a configuration file format and AppConfig makes it trivial to handle them. BTW look at that [http://trac.project-builder.org/browser/devel/pb-doc/AppConfig%3A%3AFile.patch patch] as the versions of AppConfig from 1.63 and up to 1.66 at least have a bug for handling hashes correctly this fixes. Cf: http://rt.cpan.org/Ticket/Display.html?id=28766 17 17 18 = Example of use on LinuxCOE = 18 = Example of use on netperf (simple example) = 19 20 As an example of how easy (or not :-) Project-Builder is to use, I decide to write that tutorial as a gift for another project which deserves it, the [www.netperf.org NetPerf] project . 21 22 You first have to create a .pbrc configuration file in your home directory, which will setup things globally: 23 24 {{{ 25 $ cat > ~/.pbrc << EOF 26 # 27 # Root of the temp file used to store info on the project 28 # Is also used to determine the root directory of the project 29 # No default option allowed here as they need to be all different 30 # 31 pbrc netperf = $ENV{'HOME'}/netperf/src 32 EOF 33 }}} 34 35 Then get the bits of the project you want to package. It could be using a SVN or CVS access if there is such a thing, or by downloading (at worse) the tar file of the project. Then extract that under a newly created directory that you referenced in your project configuration file: 36 37 {{{ 38 $ cd /tmp 39 $ wget ftp://ftp.netperf.org/netperf/netperf-2.4.4.tar.bz2 40 $ mkdir $HOME/netperf/src 41 $ cd $HOME/netperf/src 42 $ tar xvfj /tmp/netperf-2.4.4.tar.bz2 43 }}} 44 45 = Example of use on LinuxCOE (more complex example) = 19 46 20 47 When the project was mature enough to package correctly mondorescue and itself, I then decided it was time to try it on another unrelated project to see how difficult it could be and document that experience so that others could also begin to use pb for their own project. 21 48 22 You first have to create a.pbrc configuration file in your home directory, which will setup things globally.49 You first have to edit your .pbrc configuration file in your home directory, which will setup things globally. 23 50 24 51 Here are my .pbrc LinuxCOE relative entries: