-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake_zip_file.sh
executable file
·38 lines (24 loc) · 1.02 KB
/
make_zip_file.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
mkdir AlphaImpute
# Assumes that the program and manual have both been built.
# To build the program run:
# NOTE: Binaries should be moved to the "binaries" folder and uploaded to bitbucket after builds.
#cmake . ; make
# to build the manual:
# NOTE: Building the docs requires two additional libraries, pandoc-tablenos and pandoc-fignos. See the readme in alphaimpute-docs for more information.
#( cd alphaimpute-docs ; ./make-complete.sh )
cp -r example AlphaImpute
# Copy in the documentation.
cp alphaimpute-docs/complete.pdf AlphaImpute/AlphaImputeUserManual.pdf
if [ $? != 0 ]; then # last command: echo
echo "The manual needs to be built." # last command: [
exit 1
fi
# Copy in the binaries
cp binaries/current_release/* AlphaImpute
# Create a version file
version=`git describe --tags --abbrev=0`
commit=`git rev-parse --short HEAD`
echo Version: $version > AlphaImpute/version.txt
echo Commit: $commit >> AlphaImpute/version.txt
cp MIT_License.txt AlphaImpute
zip -r AlphaImpute.zip AlphaImpute