Menu

NewDistribution

Pedro E. López-de-Teruel

Creating a new QVision distribution

The first step is to search release version strings inside the source files of the QVision, and update it to the future release version number. The following command line can be used to look for release version strings:

:::bash
grep -re "[0-9]\.[0-9]\.[0-9]" * | grep -ve ".svn"

Usually the following files contain release version strings which must be updated:

:::bash
trunk/qvision.pro
trunk/README
trunk/Doxyfile

The following step is to update (if necessary) the year in the copyright messages. The following command looks for source files which do not contain the copyright string with the proper year:

:::bash
(for file in `find ./ -type f`; do ! (grep -e XXXX. PARP Research Group." $file > /dev/null) && echo $file; done) | grep -ve ".svn" |grep -ve "/doc/" | grep -ve ".png" |grep -ve ".xml$" |grep -ve ".qrc"

where the string XXXX is the actual year. Then the following command line can be used to update incorrect dates in copyright messages:

:::bash
for FILE in `cat p.txt`; do
echo Updating copyright in file $FILE;
sed -e 's/2010. PARP/2010, 2011. PARP/' $FILE > temp;
mv temp $FILE;
done

The next step is to create the tgz distribution file. Follow the instructions in the script create-distro.sh, to create the file qvision-<version>.tgz. This script should be called from the qvision directory, in the svn repository files.</version>

Once created the tgz and the zip files, they must be uploaded to the Sourceforge. Login to sourceforge.net as a project administrator and access the Project Develop page. From the Project Admin menu, click on “File Manager”. You are presented with the File Manager explorer interface.

The last step is to actualize the QVision homepage with the latest API documentation:
Create a doc.tgz file containing the API html files from the ‘doc/html’ directory.
Upload the tgz file to the Sourceforge server:

:::bash
ftp://<sourceforge user>,qvision@web.sourceforge.net

Access Sourceforge through ssh:

:::bash
ssh -t <sourceforge user>,qvision@shell.sourceforge.net create

Untar the file doc.tgz, to the home-page path:

:::bash
tar -xvf /home/project-web/qvision/doc.tgz /home/project-web/qvision/htdocs

Finally, just visit the QVision homepage, to check that the upload was successful:

http://qvision.sourceforge.net


MongoDB Logo MongoDB