forked from ring-lang/ring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·37 lines (30 loc) · 866 Bytes
/
build.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
#! /bin/bash
####################################
## Set global variables ##
####################################
VERSION=1.7
BASE_DIR="/usr/local/lib/ring"
LIB_DIR="$BASE_DIR/lib/"
EXT_DIR="$BASE_DIR/extensions/"
## AT_* : autotools variables
AT_BIN=autoreconf
AT_FLAGS=-i
####################################
## Make required directories ##
####################################
if [ ! -d $BASE_DIR ]; then
mkdir $BASE_DIR || exit
echo "$BASE_DIR Directory created successfully"
fi
if [ ! -d $LIB_DIR ]; then
mkdir $LIB_DIR || exit
echo "$LIB_DIR Directory created successfully"
fi
if [ ! -d $EXT_DIR ]; then
mkdir $EXT_DIR || exit
echo "$EXT_DIR Directory created successfully"
fi
####################################
## Build the configuration files ##
####################################
$AT_BIN $AT_FLAGS || exit