summaryrefslogtreecommitdiff
path: root/extractGlad.sh
blob: 4a3aa793a2e656231eabb7b7af665858fdcfc4d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

echo extracting GLAD...

if ! [ -z "${1}" ]
then
	archive="${1}"
else
	archive="glad.zip"
fi

if ! [ -e "${archive}" ]
then
	echo "failure: unable to access file \"${archive}\""
	exit 1
fi

unzip -od"glad" "${archive}"
cp -v "glad.CMakeLists.txt" "glad/CMakeLists.txt"

echo success