[814] | 1 | Demo of project-builder.org
|
---|
| 2 | ===========================
|
---|
| 3 |
|
---|
| 4 | # First demonstrate the way of working for pb itself
|
---|
| 5 | cd ~/local/pb
|
---|
| 6 | # Show the various versions available in this SVK exported dir
|
---|
| 7 | ls
|
---|
| 8 | # get the current tag of the SVK repository
|
---|
| 9 | svk info
|
---|
| 10 |
|
---|
| 11 | # get the current version of project-builder
|
---|
| 12 | rpm -q project-builder
|
---|
[817] | 13 | pb --help
|
---|
[814] | 14 |
|
---|
| 15 | # Decide to build a package for project-builder based on that devel version
|
---|
| 16 | # to replace the one currently installed
|
---|
| 17 | pb -p pb -r devel cms2build
|
---|
| 18 |
|
---|
| 19 | # Show the upstream part
|
---|
| 20 | tar tvfz /home/bruno/local/pb/delivery/project-builder-devel.tar.gz
|
---|
| 21 |
|
---|
| 22 | # Show the pb specific part
|
---|
| 23 | tar tvfz /home/bruno/local/pb/delivery/project-builder-devel.pbconf.tar.gz
|
---|
| 24 |
|
---|
| 25 | # Now make the packages
|
---|
| 26 | pb -p pb build2pkg
|
---|
| 27 |
|
---|
| 28 | # Look at the latest pckges created
|
---|
| 29 | ls -altrg /home/bruno/local/pb/build/RPMS/noarch
|
---|
| 30 |
|
---|
| 31 | # Install the generated packages
|
---|
| 32 | sudo urpmi /home/bruno/local/pb/build/RPMS/noarch/*.rpm
|
---|
| 33 |
|
---|
| 34 | # Check that it's the right one
|
---|
[816] | 35 | rpm -q project-builder
|
---|
[817] | 36 | pb --help
|
---|
[814] | 37 |
|
---|
[817] | 38 | # Now show how easy it's to build for another distro in a VM
|
---|
[816] | 39 | pb -p pb -m ubuntu-9.04-i386 build2vm
|
---|
[817] | 40 | # Now show how easy it's to build for another distro in a VE
|
---|
[816] | 41 | pb -p pb -m centos-5-i386 build2ve
|
---|
| 42 |
|
---|
[817] | 43 | # Now show how easy it's to build for another project for which I'm upstream
|
---|
[816] | 44 | pb -p mondorescue -m centos-5-i386 build2ve
|
---|
[817] | 45 | # Now show how easy it's to build for another project for which I'm not upstream with patches
|
---|
[816] | 46 | pb -p afio -m centos-5-i386 build2ve
|
---|
| 47 |
|
---|
[814] | 48 | # Create a new directory to export a project
|
---|
| 49 | mkdir
|
---|