-
Notifications
You must be signed in to change notification settings - Fork 45
/
README.build
31 lines (23 loc) · 1.16 KB
/
README.build
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
#!/bin/false
# Not a shell script!
# Instructions for building in an adjacent directory
# of the source directory (i.e. ../ocs.build)
## Configure new build directory
mkdir -p shell/lib
ln -st shell/lib ../../$(ls -d ../radierl.build/shell/lib/radius-*)
ln -st shell/lib ../../$(ls -d ../sigscale_mibs.build/shell/lib/sigscale_mibs-*)
MOCHIWEWB_VERSION=`grep vsn /usr/lib/erlang/lib/mochiweb/ebin/mochiweb.app | cut -d'"' -f 2`
ln -s /usr/lib/erlang/lib/mochiweb shell/lib/mochiweb-$MOCHIWEWB_VERSION
## Make documentation and test reports available
mkdir -p ~/public_html/ocs/
ln -st ~/public_html/ocs ../../ocs.build/doc
ln -st ~/public_html/ocs ../../ocs.build/test/log
mv ~/public_html/ocs/log ~/public_html/ocs/test
## Configure project
ERLANG_INSTALL_LIB_DIR=$PWD/shell/lib ERL_LIBS=$PWD/shell/lib ../sigscale-ocs/configure --with-systemdsystemunitdir=no
## Install in shell/lib
ERL_LIBS=$PWD/shell/lib make install
## Validate, verify and test
ERL_LIBS=$PWD/shell/lib make check
## Scrub it clean
ERL_LIBS=$PWD/shell/lib make distclean; rm -rf c_src src ebin doc include priv mibs *.rel *.boot *.script *.tar.gz config.* Makefile stamp-h1 shell/lib/ocs-* sys.config test