forked from ValveSoftware/steam-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-archives.sh
executable file
·47 lines (41 loc) · 1001 Bytes
/
make-archives.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
39
40
41
42
43
44
45
46
47
#!/bin/bash
#
# Script to build the set of runtime archives for distribution
# The top level directory
TOP=$(cd "${0%/*}" && echo "${PWD}")
cd "${TOP}"
function ExitUsage()
{
echo "Usage: $0 [--version=<value>] [<output-path>]" >&2
exit 1
}
# Process command line options
while [ "$1" != "" ]; do
case "$1" in
--version=*)
VERSION=$(expr "$1" : '[^=]*=\(.*\)')
shift
;;
*)
if [ "$ARCHIVE_OUTPUT_DIR" = "" ]; then
ARCHIVE_OUTPUT_DIR="$1"
else
ExitUsage
fi
shift
break
esac
done
if [ -z "${VERSION}" ]; then
VERSION="$(date +%F)"
fi
if [ -z "${ARCHIVE_OUTPUT_DIR}" ]; then
ARCHIVE_OUTPUT_DIR="/tmp/steam-runtime"
fi
# Create all the runtime archives
for DEVELOPER_MODE in false true; do
for DEBUG in false true; do
./make-archive.sh --debug=${DEBUG} --devmode=${DEVELOPER_MODE} --version="${VERSION}" "${ARCHIVE_OUTPUT_DIR}"
done
done
# vi: ts=4 sw=4 expandtab