-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathbuild
More file actions
32 lines (25 loc) · 744 Bytes
/
build
File metadata and controls
32 lines (25 loc) · 744 Bytes
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
#!/bin/bash
#
# Run a build-script, from within the repository.
#
set -e
# Get the name of the script
script=$1
# Ensure something was specified
if [ -z "${script}" ]; then
echo "*********************************"
echo " You must specify a build-script"
echo "*********************************"
exit 1
fi
# Ensure it exists
if [ ! -e "${script}" ]; then
echo "*****************************************************************"
echo " build script not present - looked for ${script}"
echo "*****************************************************************"
exit 1
fi
# Ensure the script is executable.
chmod 755 ${script} >/dev/null 2>/dev/null || true
# Run it
${script}