-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·32 lines (25 loc) · 893 Bytes
/
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
#!/bin/bash
set -eo pipefail
prefix="$1"
mkdir -p "$prefix"
# Install the application
mkdir -p "$prefix"/lib/anja
cp ./anja "$prefix"/lib/anja/anja
for k in __targets_*; do
mkdir "$prefix"/lib/anja/"$k"
cp "$k"/anja "$prefix"/lib/anja/"$k"/anja
done
mkdir "$prefix"/bin
ln -s -T ../lib/anja/anja "$prefix"/bin/anja
# Install user's guide
mkdir -p "$prefix"/share/help/C
tar -xf __targets_rel_presc2m/doc/anja-usersguide.tar.gz -C "$prefix"/share/help/C
mv "$prefix"/share/help/C/anja-usersguide "$prefix"/share/help/C/anja
# Install man page
mkdir -p "$prefix"/share/man/man1
cp __targets_rel_presc2m/doc/anja.man1 "$prefix"/share/man/man1/anja.1
# Install desktop icon
mkdir -p "$prefix"/share/anja
cp __targets_rel_presc2m/logo_3.png "$prefix"/share/anja/logo.png
mkdir -p "$prefix"/share/applications
cp __targets_rel_presc2m/anja.desktop "$prefix"/share/applications/anja.desktop