-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure
executable file
·48 lines (42 loc) · 969 Bytes
/
configure
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
48
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
shopt -s extglob
MODULES=( base color messages checks substitute depends )
for mod in ${MODULES[@]}; do
source ${PWD}/.configure/$mod
done
rm -f ${PWD}/.configure/results
xcount=0
while [[ ${xcount} -lt $# ]]; do
case $1 in
--mode=* ) MODE="${1/*=}" ;;
--prefix=* ) PREFIX="${1/*=}" ;;
--quiet ) QUIET=true ;;
--help ) MODE=help ;;
esac
shift
xcount=$(($xcount+1))
done
unset xcount
if [[ ${MODE} == help ]]; then
help_message
elif [[ ${MODE} == maintainer ]]; then
maintainer_message
copy_in_files
substitute_values
end_message
elif [[ ${MODE} == user ]]; then
start_message
check_helper
copy_in_files
substitute_values
end_message
fi