forked from dagon666/napi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
59 lines (39 loc) · 1.75 KB
/
INSTALL
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
49
50
51
52
53
54
55
56
57
58
59
AUTOMATIC
Use the install.sh script to copy napi.sh / subotage.sh to the bin directory (/usr/bin - bu default) and napi_common.sh library to a shared directory (/usr/share/napi - bu default).
If you want to install into directories different than defaults specify them in install.sh invocation (USE ABSOLUTE PATHS ONLY).
Examples
$ install.sh --bindir /bin --shareddir /shared
- this will install napi.sh & subotage.sh under /bin and napi_common.sh under /shared/napi
or
$ install.sh --shareddir /my/custom/directory
- this will install napi.sh & subotage.sh under /usr/bin (default path) and napi_common.sh under /my/custom/directory/napi
########################################
MANUAL
napi.sh & subotage.sh share some common code from napi_common.sh. Both of them are sourcing this file. Bellow is an example installation procedure given (executables under /usr/bin, libraries under /usr/shared/napi)
1. Edit path to napi_common.sh in napi.sh & subotage.sh:
Search for a variable NAPI_COMMON_PATH
38
39 # verify presence of the napi_common library
40 declare -r NAPI_COMMON_PATH=
and set it to /usr/shared/napi
38
39 # verify presence of the napi_common library
40 declare -r NAPI_COMMON_PATH="/usr/shared/napi"
2. Place the napi.sh & subotage.sh under /usr/bin:
$ cp -v napi.sh subotage.sh /usr/bin
3. Create the /usr/shared/napi directory and place the library inside of it:
$ mkdir -p /usr/shared/napi
$ cp -v napi_common.sh /usr/shared/napi
bashnapi bundle is now installed
########################################
3rd_party tools required:
- bash shell
- wget (can be installed via Homebrew/Macports)
- find tool
- dd (coreutils)
- md5sum (in OS X, it's md5)
- cut
- mktemp
- 7z (if napiprojekt3 is used) (p7zip)
- awk
- grep