Check-in [b78b2b93b9]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add dragonfly support
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b78b2b93b906c9a0c9feaa71b46b7b7775540c29
User & Date: dsx 2014-07-26 04:27:27
Context
2014-08-15
07:26
version 2.0.14 check-in: b49c67c8f6 user: dsx tags: trunk
2014-07-26
04:27
add dragonfly support check-in: b78b2b93b9 user: dsx tags: trunk
04:04
print default values check-in: e858e2d840 user: dsx tags: trunk
Changes

Changes to chroot.sh.

27
28
29
30
31
32
33

34
35
36
37
38
39
40
..
47
48
49
50
51
52
53








54
55
56
57
58
59

if [ ! -x ${PROG} ]; then
	echo "${PROG}: not executable"
	exit 1
fi

OPSYS=$(uname)


case $(file ${PROG}) in
	*statically*)
		FILES=${PROG}
		;;
	*dynamically*)
		case "${OPSYS}" in
................................................................................
${FILES}
${PROG}
"
				;;
			NetBSD)
				FILES=$(ldd -f '%p\n' ${PROG})
				;;








			*) echo "Sorry, '${OPSYS}' is not yet supported" && exit 1
		esac
esac

tar czf - ${FILES} | tar xzf - -C ${CHROOT}/
# vim:set sw=4 sts=4 ts=4 :







>







 







>
>
>
>
>
>
>
>
|



|

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
..
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

if [ ! -x ${PROG} ]; then
	echo "${PROG}: not executable"
	exit 1
fi

OPSYS=$(uname)
UNLINK=

case $(file ${PROG}) in
	*statically*)
		FILES=${PROG}
		;;
	*dynamically*)
		case "${OPSYS}" in
................................................................................
${FILES}
${PROG}
"
				;;
			NetBSD)
				FILES=$(ldd -f '%p\n' ${PROG})
				;;
			DragonFly)
				FILES=$(ldd -a -f '%p\n' ${PROG} | grep -v ':$' | sort -u)
				FILES="/libexec/ld-elf.so.2
${FILES}
${PROG}
"
				UNLINK="-U"
				;;
			*) echo "Sorry, '${OPSYS}' is not yet supported by '$0'" && exit 1
		esac
esac

tar czf - ${FILES} | tar xzf - -C ${CHROOT}/ ${UNLINK}
# vim:set sw=4 sts=4 ts=4 :