-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create script to compile and move binaries, ignore them
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /usr/bin/env bash | ||
|
||
# All references to an external script should be relative to the location of this script. | ||
# See: http://mywiki.wooledge.org/BashFAQ/028 | ||
CURRENT_LOCATION="${BASH_SOURCE%/*}" | ||
|
||
checkdep() { | ||
which $1 > /dev/null 2>&1 || hash $1 > /dev/null 2>&1 || { | ||
echo "Unipept database builder requires ${2:-$1} to be installed." >&2 | ||
exit 1 | ||
} | ||
} | ||
|
||
checkdep cargo "Rust Toolchain" | ||
|
||
# Build binaries and copy them to the /helper_scripts folder | ||
cd $CURRENT_LOCATION/helper_scripts/unipept-database-rs | ||
cargo build --release | ||
|
||
for BINARY in "functional-analysis" "lcas" "taxa-by-chunk" "taxons-lineages" "taxons-uniprots-tables" "write-to-chunk" "xml-parser" | ||
do | ||
cp "./target/release/$BINARY" .. | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Ignore the compiled binaries that get moved here | ||
functional-analysis | ||
lcas | ||
taxa-by-chunk | ||
taxons-lineages | ||
taxons-uniprots-tables | ||
write-to-chunk | ||
xml-parser |