Check-in [e20ce29cb3]

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

Overview
Comment:Fix sync to really respect what plist does
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e20ce29cb363b2f695e7166b75d0623e143d11b2
User & Date: bapt 2012-06-07 19:40:59
Context
2012-06-07
19:46
Fix syntax error check-in: e6642fa454 user: bdrewery tags: trunk
19:40
Fix sync to really respect what plist does check-in: e20ce29cb3 user: bapt tags: trunk
18:46
Ensure files are staged when syncing check-in: 0a1d68a187 user: bdrewery tags: trunk
Changes

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

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
..
62
63
64
65
66
67
68



69


70

71
72
73
74
75
76
77
78





79



80
tmplastplist="";
:> ${PAXLIST}
while read line; do
	case $line in
		@unexec*) ;;
		@ignore*) ;;
		@dirrm*)
			echo ./${tmpprefix}/${line#* } >> ${PAXLIST}
			;;
		@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" | sh
			;;
		@mode) unset tmpmode ;;
		@mode*) tmpmode=${line#* } ;;
		@owner) unset tmpowner ;;
		@owner*) tmpowner=${line#* } ;;
		@group) unset tmpgroup ;;
		@group*) tmpgroup=${line#* } ;;
................................................................................
			echo "./${tmpprefix}/${line}" >> ${PAXLIST}
		;;
	esac
done < ${PLIST}

# sanity check
while read line; do



	[ -e ${STAGEDIR}/$line ] || ERRS="${ERRS} ${line}"


done < ${PAXLIST}

if [ -n "${ERRS}" ]; then
	echo "=====> Some files or directory from the plist cannot be found:"
	for err in ${ERRS}; do
		echo $err
	done
	exit 1

fi





cat ${PAXLIST} | pax -p e -drw /



exit 0







|





|







 







>
>
>
|
>
>

>








>
>
>
>
>
|
>
>
>

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
..
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
tmplastplist="";
:> ${PAXLIST}
while read line; do
	case $line in
		@unexec*) ;;
		@ignore*) ;;
		@dirrm*)
			[ -d "./${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#* } ;;
................................................................................
			echo "./${tmpprefix}/${line}" >> ${PAXLIST}
		;;
	esac
done < ${PLIST}

# sanity check
while read line; do
	case $line in
		@*) continue;;
		*)
		[ -e ${STAGEDIR}/$line ] || ERRS="${ERRS} ${line}"
		;;
	esac
done < ${PAXLIST}

if [ -n "${ERRS}" ]; then
	echo "=====> Some files or directory from the plist cannot be found:"
	for err in ${ERRS}; do
		echo $err
	done
	exit 1

fi
while read line; do;
	case $line in
		@*) echo ${line#* } | sh
			;;
		*)
			echo ${line} | pax -p e -drw /
			;;
	esac
done < ${PAXLIST}
exit 0