PLDWWW: DevelopingPLD/BuilderScript

patrys patrys at pld-linux.org
Tue Sep 12 20:25:36 CEST 2006


Author: patrys   Date: Tue Sep 12 18:25:36 2006 GMT
Module: PLDWWW   URL: http://pld-linux.org/DevelopingPLD/BuilderScript
---- Log message:


---- Page affected: DevelopingPLD/BuilderScript

---- Diffs:

================================================================
  
  == Using the script ==
  
- As the script resides in the ''rpm/SPECS'' subdirectory of your home, first you need to change your current directory to that of the script:
+ You can invoke {{{builder}}} (note that as the script is now in {{{rpm-build-tools}}}, you no longer need to change the working directory) to see the list of possible parameters:
  
  {{{
- $ cd
- $ cd rpm/SPECS
- }}}
- 
- Now you can invoke {{{./builder}}} (remember that the dot and slash at the beginning are crucial) to see the list of possible parameters:
- 
- {{{
- $ ./builder
+ $ builder
  }}}
  
  The general syntax is as follows:
  
  {{{
- $ ./builder [options] package[.spec]
+ $ builder [options] package[.spec]
  }}}
  
  The {{{.spec}}} file extension is optional, {{{builder}}} will append it for you if needed.
@@ -32, +25 @@

  
    * {{{-bb}}} to build only binary packages (omits creating source RPM packages)
    * {{{-bc}}} to cleanup after successfully building a package (removes the packaging directory as it is no longer needed)
+   * {{{--date DATE}}} to build a specific release from the past (to make sure you also get proper SOURCES)
    * {{{-r BRANCH}}} to use a specific branch or revision of the given package (available branches are listed at the beginning of the building process)
    * {{{-U}}} to fetch all the sources and update their MD5 hashes in the {{{spec}}} file
    * {{{-5}}} to update MD5 hashes using locally fetched sources
@@ -49, +43 @@

  To do a normal (binary) build of ''foo'' package:
  
  {{{
- $ ./builder -bb -bc -R foo
+ $ builder -bb -bc -R foo
  }}}
  
  To perform a full build of a package that is currently being developed on the ''DEVEL'' branch:
  
  {{{
- $ ./builder -bc -r DEVEL foo
+ $ builder -bc -r DEVEL foo
  }}}
  
  To update MD5 hashes after making changes to the above {{{spec}}} file:
  
  {{{
- $ ./builder -r DEVEL -U foo
+ $ builder -r DEVEL -U foo
  }}}
  


More information about the pld-cvs-commit mailing list