Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
3bdd8aa4
Commit
3bdd8aa4
authored
Jan 17, 2019
by
Tobias WEBER
Browse files
new library dependency
parent
ec793280
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup_ext.sh
View file @
3bdd8aa4
...
...
@@ -10,6 +10,7 @@
# tools
WGET
=
wget
TAR
=
tar
UZIP
=
unzip
# -----------------------------------------------------------------------------
...
...
@@ -17,10 +18,12 @@ TAR=tar
# URLs for external libs
TLIBS
=
https://forge.frm2.tum.de/cgit/cgit.cgi/frm2/mira/tlibs.git/snapshot/tlibs-master.tar.bz2
QCP
=
http://www.qcustomplot.com/release/2.0.0/QCustomPlot-source.tar.gz
GEMMI
=
https://github.com/project-gemmi/gemmi/archive/master.zip
# local file names
TLIBS_LOCAL
=
${
TLIBS
##*[/\\]
}
QCP_LOCAL
=
${
QCP
##*[/\\]
}
GEMMI_LOCAL
=
${
GEMMI
##*[/\\]
}
# -----------------------------------------------------------------------------
...
...
@@ -30,12 +33,14 @@ function clean_dirs()
{
rm
-rf
tlibs
rm
-rf
qcp
rm
-rf
gemmi
}
function
clean_files
()
{
rm
-f
${
TLIBS_LOCAL
}
rm
-f
${
QCP_LOCAL
}
rm
-f
${
GEMMI_LOCAL
}
}
# -----------------------------------------------------------------------------
...
...
@@ -76,6 +81,25 @@ function dl_qcp()
mv
qcustomplot-source qcp
}
function
dl_gemmi
()
{
if
!
${
WGET
}
${
GEMMI
}
then
echo
-e
"Error downloading gemmi."
;
exit
-1
;
fi
if
!
${
UZIP
}
${
GEMMI_LOCAL
}
then
echo
-e
"Error extracting gemmi."
;
exit
-1
;
fi
mv
gemmi-master gemmi
}
# -----------------------------------------------------------------------------
...
...
@@ -97,6 +121,11 @@ echo -e "Installing external qcustomplot library...\n"
dl_qcp
echo
-e
"--------------------------------------------------------------------------------
\n
"
echo
-e
"
\n
--------------------------------------------------------------------------------"
echo
-e
"Installing external Gemmi library...
\n
"
dl_gemmi
echo
-e
"--------------------------------------------------------------------------------
\n
"
echo
-e
"
\n
--------------------------------------------------------------------------------"
echo
-e
"Removing temporary files...
\n
"
clean_files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment