summaryrefslogtreecommitdiffhomepage
path: root/subr/ex_setup_subdirs.subr
blob: 5d74e15cca400ca99d93730e0d8853bb92677999 (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
45
46
47
48
49
50
51
#
# set -o errexit -o noglob are assumed.
#

ex_setup_subdirs() {
	local __;
	if [ ${ARG_CLEAN:-0} -eq 1 ]; then
		ex_log_msg info "-c specified, cleaning prefix...";
		for __ in ${CLEAR_PREFIX_DIRS}; do
			if [ -e ${PREFIX}/${__} ]; then
				build_rm ${PREFIX}/${__};
			fi;
		done;
	fi;
	pkg_install_files ""					\
		/=${DLCACHEDIR}					\
		/=${WORKDIR}					\
		/=${PREFIX}					\
		/=${PREFIX}/bin					\
		/=${PREFIX}/lib/pkgconfig			\
		/=${PREFIX}/share/doc				\
		/=${PREFIX}/share/info				\
		/=${PREFIX}/share/man				\
		/=${PREFIX}/${TARGET}/bin			\
		/=${PREFIX}/${TARGET}/lib			\
		/=${PREFIX}/x86_64-w64-mingw32			\
		/=${PREFIX_CROSS}				\
		/=${PREFIX_MINIPIX}/bin				\
		/=${PREFIX_NATIVE}				\
		/=${PREFIX_NATIVE}/share/doc			\
		/=${PREFIX_NATIVE}/share/info			\
		/=${PREFIX_NATIVE}/share/man			\
		/=${PREFIX_NATIVE}/${TARGET}/lib		\
		@.=${PREFIX}/usr				\
		@.=${PREFIX}/x86_64-w64-mingw32/mingw		\
		/=${PREFIX}/x86_64-w64-mingw32/mingw/include	\
		@.=${PREFIX_NATIVE}/usr				\
		@../lib/pkgconfig=${PREFIX}/share/pkgconfig	\
		@lib=${PREFIX}/lib64				\
		@bin=${PREFIX_MINIPIX}/lib			\
		@bin=${PREFIX_MINIPIX}/libexec			\
		@bin=${PREFIX_MINIPIX}/share			\
		@share/doc=${PREFIX}/doc			\
		@share/info=${PREFIX}/info			\
		@share/man=${PREFIX}/man			\
		@share/doc=${PREFIX_NATIVE}/doc			\
		@share/info=${PREFIX_NATIVE}/info		\
		@share/man=${PREFIX_NATIVE}/man;
};

# vim:filetype=sh