Check-in [39db7148d8]

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

Overview
Comment:- use compact test syntax

Submitted by ak@

Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:39db7148d8de2ac3627bcd51fa89b9e443826077
User & Date: bapt 2012-06-25 15:15:42
Context
2012-06-25
21:39
Fix symlinks after manpage compression check-in: 03c2fc0a5c user: bapt tags: trunk
15:15
- use compact test syntax

Submitted by ak@ check-in: 39db7148d8 user: bapt tags: trunk

2012-06-24
21:11
Sync with latest from ports check-in: daebc02d22 user: bapt tags: trunk
Changes

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

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
..
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
..
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
	esac
done

: ${PREFIX:=/usr/local}
[ -z ${STAGEDIR} ] && usage
[ -z ${PLIST} ] && usage
[ -f ${PLIST} ] || usage
test -d ${STAGEDIR} || usage
test -d ${WRKDIR} || usage

PAXLIST=${WRKDIR}/.pax
EXECLIST=${WRKSRC}/.exec

cd ${STAGEDIR}
tmpprefix=${PREFIX}
tmplastplist="";
................................................................................
:> ${PAXLIST}
:> ${EXECLIST}
while read line; do
	case $line in
		@unexec*) ;;
		@ignore*) ;;
		@dirrm*)
			test -d "${STAGEDIR}/${tmpprefix}/${line#* }" || \
				ERRS="${ERRS} ${line}"
			;;
		@comment*) ;;
		@cwd) tmpprefix=${PREFIX} ;;
		@cwd*) tmpprefix=${line#* } ;;
		@exec*)
			dirname=${tmplastplist%/*}
................................................................................
		@owner*) tmpowner=${line#* } ;;
		@group) unset tmpgroup ;;
		@group*) tmpgroup=${line#* } ;;
		@*) ${DO_NADA} ;;
		*)
			tmplastplist=$line ;
			chown ${tmpowner:-root}:${tmgroup:-wheel} ./$tmpprefix/$line
			if [ -n "$tmpmode" ]; then
				chmod $tmpmode ./$tmpprefix/$line
			fi
			echo "./${tmpprefix}/${line}" >> ${PAXLIST}
		;;
	esac
done < ${PLIST}

if [ -n "${ERRS}" ]; then
	echo "=====> Some files or directory from the plist cannot be found:"







|
|







 







|







 







<
|
<







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
..
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
..
61
62
63
64
65
66
67

68

69
70
71
72
73
74
75
	esac
done

: ${PREFIX:=/usr/local}
[ -z ${STAGEDIR} ] && usage
[ -z ${PLIST} ] && usage
[ -f ${PLIST} ] || usage
[ -d ${STAGEDIR} ] || usage
[ -d ${WRKDIR} ] || usage

PAXLIST=${WRKDIR}/.pax
EXECLIST=${WRKSRC}/.exec

cd ${STAGEDIR}
tmpprefix=${PREFIX}
tmplastplist="";
................................................................................
:> ${PAXLIST}
:> ${EXECLIST}
while read line; do
	case $line in
		@unexec*) ;;
		@ignore*) ;;
		@dirrm*)
			[ -d "${STAGEDIR}/${tmpprefix}/${line#* }" ] || \
				ERRS="${ERRS} ${line}"
			;;
		@comment*) ;;
		@cwd) tmpprefix=${PREFIX} ;;
		@cwd*) tmpprefix=${line#* } ;;
		@exec*)
			dirname=${tmplastplist%/*}
................................................................................
		@owner*) tmpowner=${line#* } ;;
		@group) unset tmpgroup ;;
		@group*) tmpgroup=${line#* } ;;
		@*) ${DO_NADA} ;;
		*)
			tmplastplist=$line ;
			chown ${tmpowner:-root}:${tmgroup:-wheel} ./$tmpprefix/$line

			[ -n "$tmpmode" ] && chmod $tmpmode ./$tmpprefix/$line

			echo "./${tmpprefix}/${line}" >> ${PAXLIST}
		;;
	esac
done < ${PLIST}

if [ -n "${ERRS}" ]; then
	echo "=====> Some files or directory from the plist cannot be found:"