Skip to content

Commit

Permalink
[INFRA] Add CPack und bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Sep 5, 2023
1 parent 538c9f4 commit d3858cc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
41 changes: 40 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 3.10)
## CUSTOMISE

# Define the application name and version.
project (needle VERSION 1.0.0)
project (needle VERSION 1.0.3)

## BUILD

Expand Down Expand Up @@ -47,3 +47,42 @@ add_subdirectory (doc EXCLUDE_FROM_ALL)

enable_testing ()
add_subdirectory (test EXCLUDE_FROM_ALL)

## PACKAGE
# Change version in this file: project (needle VERSION x.x.x)
# Change version in src/main.cpp: parser.info.version = "x.x.x";
# To package, create a clean directory:
#
# mkdir needle-package
# cd needle-package
# git clone https://github.com/seqan/needle
# cd needle
# # git checkout VERSION # optional: Checkout a tag if it exists.
# git submodule update --init
# cd lib/seqan3
# git submodule update --init
# cd ../../../
# mkdir package
# cd package
# cmake ../needle
# cmake --build . --target package_source
#
# Will create needle-[VERSION]-Source.tar.xz{,.sha256}.
# We do git submodule update --init instead of a recursive clone, because we do not want to package the recursive
# submodules, but only what we need. The script handles all submodules at the time of writing, but newer submodules
# might be missing.
# This should be done in a clean directory, because everything in the needle checkout will be packaged, i.e., also
# local build directories if they exist.

set (CPACK_GENERATOR "TXZ")

set (CPACK_PACKAGE_VERSION "${needle_VERSION}")
set (CPACK_PACKAGE_VENDOR "seqan")
set (CPACK_PACKAGE_CHECKSUM "SHA256")
set (CPACK_RESOURCE_FILE_LICENSE "${needle_SOURCE_DIR}/LICENSE.md")
set (CPACK_RESOURCE_FILE_README "${needle_SOURCE_DIR}/README.md")

set (CPACK_SOURCE_GENERATOR "TXZ")
set (CPACK_SOURCE_IGNORE_FILES "\\\\.git($|/)")

include (CPack)
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int run_needle_estimate(seqan3::argument_parser & parser)
estimate_ibf_arguments args{};
estimate_arguments estimate_args{};
parser.info.short_description = "Estimate expression value of transcript based on the Needle index.";
parser.info.version = "1.0.0";
parser.info.version = "1.0.3";
parser.info.author = "Mitra Darvish";

args.path_out = "expressions.out";
Expand Down Expand Up @@ -505,7 +505,7 @@ int main(int argc, char const ** argv)
needle_parser.info.description.push_back("Needle allows you to build an Interleaved Bloom Filter (IBF) with the "
"command ibf or estimate the expression of transcripts with the command "
"estimate.");
needle_parser.info.version = "1.0.0";
needle_parser.info.version = "1.0.3";
needle_parser.info.author = "Mitra Darvish";

try
Expand Down

0 comments on commit d3858cc

Please sign in to comment.