Skip to content
Snippets Groups Projects
Commit 6a13c535 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

debian package script updated for new versioning system

parent 6a1b9de7
No related branches found
No related tags found
No related merge requests found
target/
map_images/
CellDesigner-plugin/target/
annotation/target/
annotation/minerva-big/
CellDesigner-plugin/target/
commons/target/
comparison/target/
console/target/
converter/target/
converter-CellDesigner/target/
converter-SBGNML/target/
*.png
target/
debian/src/
debian/minerva*
debian/src/*.sql
*.war
editor/target/
map_images/
model/target/
model-command/target/
pathvisio/target/
......@@ -22,5 +19,8 @@ persist/target/
quadTrees/target/
reactome/target/
rest-api/target/
target/
web/target/
web/src/main/webapp/svnversion.txt
*.png
*.war
#!/bin/bash
versionCompLte() {
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
}
versionCompLt() {
[ "$1" = "$2" ] && return 1 || versionCompLte $1 $2
}
#Where source file of the debian package should be placed
SRC_DIR=debian/src
......@@ -39,6 +49,9 @@ gzip $SRC_DIR/minerva.txt
#copy configuration of logrotate
cp debian/logrotate/* $SRC_DIR/
#copy changelog file
cp CHANGELOG $ROOT_DIR/debian/template/changelog
#this variable will contain all available versions of the package
versions=();
......@@ -46,11 +59,12 @@ versions=();
current_version=-1;
#find all available versions
for version in `ls $DB_SCHEMA_DIR | sort -V`;
do
if [ -d "$DB_SCHEMA_DIR/$version" ]
then
versions[$version]=$version;
versions+=($version);
current_version=$version;
fi
done
......@@ -92,7 +106,7 @@ do
do
#update from version_B should contain all db changes that appeard
#after #version_B (so version_A must be later)
if [ $version_B -lt $version_A ]
if versionCompLt $version_B $version_A
then
upd_file=$SRC_DIR/db_"$version_B"_to_$current_version".sql";
printf "\n\n-- UPDATE $version_A/$file\n\n" >>$upd_file;
......@@ -159,7 +173,7 @@ echo db_0.sql /usr/share\/minerva/schema >> debian/install
echo db_0_to_$current_version".sql" /usr/share/minerva/schema >> debian/install
for version in ${versions[*]}
do
if [ $version -ne $current_version ]
if [ "$version" != "$current_version" ]
then
echo db_"$version"_to_$current_version".sql" /usr/share/minerva/schema >> debian/install;
fi
......@@ -180,3 +194,6 @@ rm debian/package.doc-base.EX
#build debian package
debuild -us -uc
# remove temporary changelog
rm $ROOT_DIR/debian/template/changelog
minerva (10) stable; urgency=medium
* Project info tab available for users
* Management of overlays in admin panel
* Bug fix: Visualization of text mining
* Bug fix: Exception when accessing non-existing project
* Bug fix: Zooming issue when searching for results on submaps
* Bug fix: Out of memory when caching a lot of data
* Bug fix: Corrupted drug names
* Bug fix: Unexpected errors when uploading layouts
* Bug fix: Coordinates in url
* Bug fix: Hiding left panel
* Bug fix: CellDesigner font size is processed properly
* Bug fix: Search by reaction id is not case sensitive
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 22 Aug 2016 13:01:16 +0200
minerva (9) stable; urgency=medium
* Fix on install script of version 8 that crashed some new installations
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 29 Jun 2016 09:58:34 +0200
minerva (8) stable; urgency=medium
* Micro RNA interface
* Toxic chemicals interdace
* Data sets (layouts) visualized dynamically in the browser
* Reverse query for drugs, chemicals, micro RNAs interfaces
* Small bug fixes
-- Piotr Gawron <piotr.gawron@uni.lu> Thu, 14 Apr 2016 13:03:55 +0200
minerva (7) stable; urgency=low
* Initial release
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 28 Sep 2015 10:30:53 -0400
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment