summaryrefslogtreecommitdiff
path: root/src/backend/libvasile.sh
blob: 79a46ab87884344d427a825a92d3f74baad529b4 (plain)
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
#!/usr/bin/env bash

if [[ -f /lib/gentoo/functions.sh ]] ; then
	source /lib/gentoo/functions.sh
else
	echo "I won't do that without sys-apps/gentoo-functions"
	exit 1
fi

if [[ -f /usr/lib/vasile/variables_jail.sh ]] ; then
	source /usr/lib/vasile/variables_jail.sh
else
	source variables_jail.sh
fi

if [[ -f /usr/lib/vasile/commands_jail.sh ]] ; then
	source /usr/lib/vasile/commands_jail.sh
else
	source commands_jail.sh
fi

if [[ -f /usr/lib/vasile/gfunctions_generic.sh ]] ; then
	source /usr/lib/vasile/functions_generic.sh
else
	source functions_generic.sh
fi

if [[ -f /usr/lib/vasile/functions_makepkg.sh ]] ; then
	source /usr/lib/vasile/functions_makepkg.sh
else
	source functions_makepkg.sh
fi

if [[ -f /usr/lib/vasile/functions_makeiso.sh ]] ; then
	source /usr/lib/vasile/functions_makeiso.sh
else
	source functions_makeiso.sh
fi

if [[ -f /usr/lib/vasile/functions_modeswitch.sh ]] ; then
	source /usr/lib/vasile/functions_modeswitch.sh
else
	source functions_modeswitch.sh
fi