/+junk/FLECS-Template

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/FLECS-Template

« back to all changes in this revision

Viewing changes to get_deps.sh

  • Committer: Gustav Hartvigsson
  • Date: 2020-10-15 15:41:32 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20201015154132-0fx42ywmpp2cqctt
* Inital commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env bash
 
2
 
 
3
############
 
4
# Easy Access Config.
 
5
############
 
6
 
 
7
FLECS_TAG="v2.2.0" # Flecs version.
 
8
 
 
9
 
 
10
echo "----"
 
11
echo "Getting dependencies."
 
12
echo "----"
 
13
 
 
14
mkdir -p ./subprojects/
 
15
 
 
16
# Getting FLECS.
 
17
if [ ! -d ./subprojects/flecs ]
 
18
then
 
19
  git clone --branch $FLECS_TAG\
 
20
      https://github.com/SanderMertens/flecs \
 
21
      ./subprojects/flecs
 
22
else
 
23
  cd ./subprojects/flecs
 
24
  FLECS_BRANCH=$(git describe --tags)
 
25
  FLECS_REV=$(git log --pretty=format:'%h' -n 1)
 
26
  echo "FLECS ($FLECS_BRANCH, $FLECS_REV) already got."
 
27
fi
 
28
 
 
29
# Your Deps here.
 
30
 
 
31
echo "----"
 
32
echo "Done Getting Depenecies."
 
33
echo "----"