[62e1a2]: devel / RELEASE_PACKAGE Maximize Restore History

Download this file

RELEASE_PACKAGE    55 lines (47 with data), 2.3 kB

=====================================================================================
Prepare quaternion-2.x.y Package for Release
=====================================================================================
USAGE: * adapt all paths to your machine
       * update version number in the commands below
       * adapt version number and release date in DESCRIPTION
       * update NEWS
       * adapt version number in quaternion.tex
       * run m-file generate_quaternion_pdf
       * copy-paste entire block at once to the terminal
       * follow instructions on <http://octave.sourceforge.net/developers.html>

TODO:  * create a nice shell script for this task
=====================================================================================

cd
mkdir ~/octave/__TEMP__
cd ~/quaternion
hg archive ~/octave/__TEMP__/quaternion
cd ~/quaternion/devel/pdfdoc
cp quaternion.pdf ~/octave/__TEMP__/quaternion/doc/
cp quaternion.tex ~/octave/__TEMP__/quaternion/doc/
cp functions.texi ~/octave/__TEMP__/quaternion/doc/
rm -R ~/octave/__TEMP__/quaternion/doc/placeholder.txt
rm -R ~/octave/__TEMP__/quaternion/devel
rm -R ~/octave/__TEMP__/quaternion/.hg_archival.txt
rm -R ~/octave/__TEMP__/quaternion/.hgtags
rm -R ~/octave/__TEMP__/quaternion/.hgignore
cd ~/octave/__TEMP__
grep -i version quaternion/DESCRIPTION
tar czf quaternion-2.0.2.tar.gz quaternion/
md5 quaternion-2.0.2.tar.gz
md5 quaternion-2.0.2.tar.gz > md5_quaternion_pkg.txt
uuencode quaternion-2.0.2.tar.gz < quaternion-2.0.2.tar.gz > quaternion-2.0.2.tar.gz.uue
octave -q --eval \
"pkg install quaternion-2.0.2.tar.gz"
octave -q --eval \
"pkg load generate_html; generate_package_html ('quaternion', 'quaternion-html', 'octave-forge')"
tar czf quaternion-html.tar.gz quaternion-html
md5 quaternion-html.tar.gz
md5 quaternion-html.tar.gz > md5_quaternion_html.txt
uuencode quaternion-html.tar.gz < quaternion-html.tar.gz > quaternion-html.tar.gz.uue
cd


=====================================================================================
Aftermath
=====================================================================================

rm -R ~/octave/__TEMP__
rm -R ~/octave/quaternion-2.0.2


=====================================================================================