$treeview $search $mathjax
The following steps are required to make a release of the distribution package.
cd ~ mkdir -p dev/sim cd ~/dev/sim git clone git://airinv.git.sourceforge.net/gitroot/airinv/airinv airinvgit cd airinvgit git checkout trunk
cd ~/dev/sim/airinvgit git checkout trunk git checkout -b 0.5.0
vi CMakeLists.txt vi autogen.sh
Update the version and add a change-log in the ChangeLog and in the RPM specification files:
vi ChangeLog vi airinv.spec
cd ~/dev/sim/airinvgit git add -A git commit -m "[Release 0.5.0] Release of version 0.5.0." git push
cd ~/dev/sim/airinvgit git checkout trunk vi ChangeLog vi airinv.spec
Commit the change-logs and publish the trunk (main development branch):
git commit -m "[Doc] Integrated the change-log of the release 0.5.0." git push
cd ~/dev/sim/airinvgit git checkout 0.5.0 rm -rf build && mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/home/user/dev/deliveries/airinv-0.5.0 \ -DWITH_STDAIR_PREFIX=/home/user/dev/deliveries/stdair-stable \ -DCMAKE_BUILD_TYPE:STRING=Debug -DINSTALL_DOC:BOOL=ON .. make check && make dist
This will configure, compile and check the package. The output packages will be named, for instance, airinv-0.5.0.tar.gz
and airinv-0.5.0.tar.bz2
.
cd ~/dev/sim/airinvgit git checkout 0.5.0 rm -rf build && mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/home/user/dev/deliveries/airinv-0.5.0 \ -DWITH_STDAIR_PREFIX=/home/user/dev/deliveries/stdair-stable \ -DCMAKE_BUILD_TYPE:STRING=Debug -DINSTALL_DOC:BOOL=ON .. make dist
To perform this step, rpm-build, rpmlint and rpmdevtools have to be available on the system.
cp airinv.spec ~/dev/packages/SPECS \ && cp airinv-0.5.0.tar.bz2 ~/dev/packages/SOURCES cd ~/dev/packages/SPECS rpmbuild -ba airinv.spec rpmlint -i ../SPECS/airinv.spec ../SRPMS/airinv-0.5.0-1.fc15.src.rpm \ ../RPMS/noarch/airinv-* ../RPMS/i686/airinv-*
NEWS
and ChangeLog
files with appropriate information, including what has changed since the previous release. Then commit and push the changes into the AirInv's Git repository.make package
The output binary package will be named, for instance, airinv-0.5.0-Linux.tar.bz2
. That package contains both the HTML and PDF documentation. The binary package contains also the executables and shared libraries, as well as C++ header files, but all of those do not interest us for now.
cd ~/dev/sim/airinvgit git checkout 0.5.0 rsync -aiv doc/html/ doc/latex/refman.pdf joe,airinv@web.sourceforge.net:htdocs/
-aiv
options mean:-a
: archive/mirror mode; equals -rlptgoD
(no -H
, -A
, -X
)-v
: increase verbosity-i
: output a change-summary for all updatesdoc/html
), rather than the directory itself, has to be copied into the content of the target directory.