Check-in [582f3b845d]

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

Overview
Comment:Preliminary make genplist target
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:582f3b845d4a0d05f68ef4872daaf251eda49dae
User & Date: bapt 2012-06-07 10:45:48
Context
2012-06-07
12:19
Correct ordering of directories, and manage DOCSDIR EXAMPLESDIR and DATADIR check-in: bd4ba8d610 user: bapt tags: trunk
10:45
Preliminary make genplist target check-in: 582f3b845d user: bapt tags: trunk
10:14
Sync first check the consistency of the plist check-in: e8cddc8cfa user: bapt tags: trunk
Changes

Changes to ports/Mk/bsd.stage.mk.

28
29
30
31
32
33
34





















	
	@if [ -f ${PKGINSTALL} ]; then \
		${SH} ${PKGINSTALL} POST-INSTALL; \
	fi
	@[ -f ${PKGMESSAGE} ] && ${CAT} ${PKGMESSAGE} || return 0
.endif
.endif




























>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
	
	@if [ -f ${PKGINSTALL} ]; then \
		${SH} ${PKGINSTALL} POST-INSTALL; \
	fi
	@[ -f ${PKGMESSAGE} ] && ${CAT} ${PKGMESSAGE} || return 0
.endif
.endif

.if !target(genplist)
genplist: stage
	@tar tf ${MTREE_FILE} > ${WRKDIR}/.mtree
	@${FIND} ${STAGEDIR} -type f -o -type l | sed -e "s,${STAGEDIR},,g" \
		-e "s,${DOCSDIR},%%DOCSDIR%%,g" \
		-e "s,${EXAMPLESDIR},%%EXAMPLESDIR%%,g" \
		-e "s,${DATADIR},%%DATADIR%%,g" \
		-e "s,${PREFIX}/,,g"
	@${FIND} ${STAGEDIR} -type d | sed -e "s,${STAGEDIR},,g" \
		-e "s,${DOCSDIR},%%DOCSDIR%%,g" \
		-e "s,${EXAMPLESDIR},%%EXAMPLESDIR%%,g" \
		-e "s,${DATADIR},%%DATADIR%%,g" \
		-e "s,${PREFIX}/,,g" | while read line; do \
		grep -qw "^$${line}$$" ${WRKDIR}/.mtree || { \
			if [ -n "$${line}" ]; then \
				${ECHO_CMD} "@dirrmtry $${line}"; \
			fi ; \
		}; \
		done | sort -r
.endif