Check-in [ae24127af2]

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

Overview
Comment:Fix %B not having PREFIX and optimize to not depend on basename(1)/dirname(1)
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ae24127af2723de5c3ffb27ef3e90408ea621ea8
User & Date: bdrewery 2012-06-08 21:54:19
Context
2012-06-09
15:04
Only run post-install when staging check-in: 7148a3f233 user: bdrewery tags: trunk
2012-06-08
21:54
Fix %B not having PREFIX and optimize to not depend on basename(1)/dirname(1) check-in: ae24127af2 user: bdrewery tags: trunk
21:36
Fix @exec wiping out PAXLIST check-in: 4c67aacd1d user: bdrewery tags: trunk
Changes

Changes to ports/Tools/scripts/sync_from_stage.sh.

40
41
42
43
44
45
46


47
48
49
50
51
52
53
54
		@dirrm*)
			test -d "${STAGEDIR}/${tmpprefix}/${line#* }" || ERRS="${ERRS} ${line}"
			;;
		@comment*) ;;
		@cwd) tmpprefix=${PREFIX} ;;
		@cwd*) tmpprefix=${line#* } ;;
		@exec*)


			echo ${line} | sed -e "s,%D,${PREFIX},g" -e "s,%F,${tmplastplist},g" -e "s,%B,`dirname ${tmplastplist}`,g" -e "s,%f,`basename ${tmpprefix}/${tmplastplist}`,g" >> ${PAXLIST}
			;;
		@mode) unset tmpmode ;;
		@mode*) tmpmode=${line#* } ;;
		@owner) unset tmpowner ;;
		@owner*) tmpowner=${line#* } ;;
		@group) unset tmpgroup ;;
		@group*) tmpgroup=${line#* } ;;







>
>
|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
		@dirrm*)
			test -d "${STAGEDIR}/${tmpprefix}/${line#* }" || ERRS="${ERRS} ${line}"
			;;
		@comment*) ;;
		@cwd) tmpprefix=${PREFIX} ;;
		@cwd*) tmpprefix=${line#* } ;;
		@exec*)
			dirname=${tmplastplist%/*}
			basename=${tmplastplist##*/}
			echo ${line} | sed -e "s,%D,${PREFIX},g" -e "s,%F,${tmplastplist},g" -e "s,%B,${tmpprefix}/${dirname},g" -e "s,%f,${basename},g" >> ${PAXLIST}
			;;
		@mode) unset tmpmode ;;
		@mode*) tmpmode=${line#* } ;;
		@owner) unset tmpowner ;;
		@owner*) tmpowner=${line#* } ;;
		@group) unset tmpgroup ;;
		@group*) tmpgroup=${line#* } ;;