"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "makeRelease.sh" between
scidavis-1.26.tar.gz and scidavis-2.1.4.tar.gz

About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).

makeRelease.sh  (scidavis-1.26):makeRelease.sh  (scidavis-2.1.4)
echo "old version=`git describe`" echo "old version=`git describe`"
version=$1 fullversion=$1
delta=${version##*.} version=${fullversion%%-*}
# strip any leading 0s from delta extra=-${fullversion##*-}
delta=`echo $delta|sed -e 's/^0*//'` if [ $extra = "-$version" ]; then
extra=""
fi
echo $version $extra
# strip any leading 0s from patch
branch=${version%.*} branch=${version%.*}
major=${branch%.*} major=${branch%.*}
echo "$branch minor=$minor" minor=${branch#*.}
if [ "$major" = "$branch" ]; then patch=${version##*.}
# we have a full release, not beta release scidavis_version=$[$major*65536 + $minor*256 + $patch]
minor=$delta
delta=0
else
# we have a beta release
minor=${branch##*.}
fi
echo $major $minor $delta
scidavis_version=$[$major*65536 + $minor*256 + $delta]
rm -f libscidavis/src/version.cpp rm -f libscidavis/src/version.cpp
cat >libscidavis/src/version.cpp <<EOF cat >libscidavis/src/version.cpp <<EOF
#include "globals.h" #include "globals.h"
const int SciDAVis::scidavis_versionNo = $scidavis_version; const int SciDAVis::scidavis_versionNo = $scidavis_version;
const char* SciDAVis::scidavis_version = "$version"; const char* SciDAVis::scidavis_version = "$version";
const char* SciDAVis::extra_version = "$extra";
const char * SciDAVis::release_date = "`date +"%b %d, %Y"`"; const char * SciDAVis::release_date = "`date +"%b %d, %Y"`";
EOF EOF
# also check that all translation files have been included # also check that all translation files have been included
for i in scidavis/translations/*.ts; do for i in scidavis/translations/*.ts; do
if git ls-files --error-unmatch >/dev/null; then if git ls-files --error-unmatch >/dev/null; then
true; true;
else else
echo "translation $i not checked in" echo "translation $i not checked in"
exit 1 exit 1
fi fi
done done
# update Doxyversion # update Doxyversion
rm -f Doxyversion rm -f Doxyversion
echo "PROJECT_NUMBER=$version" >Doxyversion echo "PROJECT_NUMBER=$version" >Doxyversion
echo "$1" >doc/version.tex echo "$version" >doc/version.tex
git commit -a -m "Release $1" git commit -a -m "Release $fullversion"
git tag -a -m "" $1 git tag -a -m "" $fullversion
 End of changes. 4 change blocks. 
15 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)