File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33# solution plucked from http://stackoverflow.com/questions/59895
4- SOURCE=" ${BASH_SOURCE[0]} "
4+ SOURCE=" $0 "
55while [ -h " $SOURCE " ]; do
66 DIR=" $( cd -P " $( dirname " $SOURCE " ) " && pwd ) "
77 SOURCE=" $( readlink " $SOURCE " ) "
8- [[ $SOURCE != /* ]] && SOURCE=" $DIR /$SOURCE "
8+ case $SOURCE in
9+ " /" * ) true ;;
10+ * ) SOURCE=" $DIR /$SOURCE " ;;
11+ esac
912done
1013DIR=" $( cd -P " $( dirname " $SOURCE " ) " && pwd ) "
1114
15+ if [ ! -f " $DIR /clone.sh" ] || [ -h " $DIR /clone.sh" ]; then
16+ >&2 echo ' Could not resolve source directory, make sure to execute the source file instead of sourcing it'
17+ exit 1
18+ fi
19+
1220git clone http://luajit.org/git/luajit-2.0.git " $DIR /luajit"
1321git clone https://github.com/letoram/openal.git " $DIR /openal"
1422git clone https://github.com/libuvc/libuvc.git " $DIR /libuvc"
You can’t perform that action at this time.
0 commit comments