Commit d656a6ed authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Mathieu Giraud

Packaging VERSION file

Added automatically built VERSION files to all packages
parent 399a262a
......@@ -12,9 +12,10 @@ copy_files -s="$source_files" -d="$dest_files"
cd "$MY_PWD/$dest_files/germline"
make
cd "$MY_PWD/$dest_files/data"
cd "$MY_PWD/$exec_dir"
create_version_file "$MY_PWD/$dest_files/algo/VERSION"
bash "$MY_PWD/mkdeb"
cd "$MY_PWD"
......
......@@ -17,6 +17,7 @@ cd "$MY_PWD/$dest_files/data"
make
cd "$MY_PWD/$exec_dir"
create_version_file "$MY_PWD/$dest-files/browser/"
bash "$MY_PWD/mkdeb"
cd "$MY_PWD"
......
......@@ -57,3 +57,12 @@ remove_files() {
fi
done
}
create_version_file() {
changelog="`dpkg-parsechangelog`"
name="`echo "$changelog" | grep '^Source: ' | cut -b9-`"
fullversion="`echo "$changelog" | grep '^Version: ' | cut -b10-`"
version="${fullversion%-*}"
echo "$version" > "$1/VERSION"
}
......@@ -11,6 +11,7 @@ exec_dir="$dest_files"
copy_files -s="$source_files" -d="$dest_files" --debug
cd "$MY_PWD/$exec_dir"
create_version_file "$MY_PWD/$dest_files/germline"
bash "$MY_PWD/mkdeb"
cd "$MY_PWD"
......
......@@ -15,6 +15,7 @@ make
cd "$MY_PWD/$dest_files/data"
cd "$MY_PWD/$exec_dir"
create_version_file "$MY_PWD/$dest_files/server"
bash "$MY_PWD/mkdeb"
cd "$MY_PWD"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment