-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
38 lines (27 loc) · 852 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Exit on any error
set -e
chmod +x src/*.pl
# Initialize and update the main submodule
git submodule update --init
# Define variables for directories
KMC_DIR="src/kmc3"
# Enter the KMC directory, initialize and update its submodule, and make the project
cd "$KMC_DIR"
git submodule update --init
make
# Go back to the src directory
cd ../..
# Define variables for directories
SEQTK_DIR="src/seqtk"
cd "$SEQTK_DIR"
make
# Go back to the src directory
cd ..
# Compile the readskmercount program
g++ -o readskmercount -I./kmc3 readskmercount.opt.parameter.cpp -L./kmc3/bin -lkmc_core -pthread
CURRENT_PATH=$(pwd)
echo "export PATH=$CURRENT_PATH:\$PATH" >> ~/.bashrc
echo "export PATH=$CURRENT_PATH/seqtk:\$PATH" >> ~/.bashrc
echo "export PATH=$CURRENT_PATH/kmc3/bin:\$PATH" >> ~/.bashrc
echo "Installation completed successfully."