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     40   		@dirrm*)
    41     41   			test -d "${STAGEDIR}/${tmpprefix}/${line#* }" || ERRS="${ERRS} ${line}"
    42     42   			;;
    43     43   		@comment*) ;;
    44     44   		@cwd) tmpprefix=${PREFIX} ;;
    45     45   		@cwd*) tmpprefix=${line#* } ;;
    46     46   		@exec*)
    47         -			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}
           47  +			dirname=${tmplastplist%/*}
           48  +			basename=${tmplastplist##*/}
           49  +			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}
    48     50   			;;
    49     51   		@mode) unset tmpmode ;;
    50     52   		@mode*) tmpmode=${line#* } ;;
    51     53   		@owner) unset tmpowner ;;
    52     54   		@owner*) tmpowner=${line#* } ;;
    53     55   		@group) unset tmpgroup ;;
    54     56   		@group*) tmpgroup=${line#* } ;;