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     20   	esac
    21     21   done
    22     22   
    23     23   : ${PREFIX:=/usr/local}
    24     24   [ -z ${STAGEDIR} ] && usage
    25     25   [ -z ${PLIST} ] && usage
    26     26   [ -f ${PLIST} ] || usage
    27         -test -d ${STAGEDIR} || usage
    28         -test -d ${WRKDIR} || usage
           27  +[ -d ${STAGEDIR} ] || usage
           28  +[ -d ${WRKDIR} ] || usage
    29     29   
    30     30   PAXLIST=${WRKDIR}/.pax
    31     31   EXECLIST=${WRKSRC}/.exec
    32     32   
    33     33   cd ${STAGEDIR}
    34     34   tmpprefix=${PREFIX}
    35     35   tmplastplist="";
................................................................................
    36     36   :> ${PAXLIST}
    37     37   :> ${EXECLIST}
    38     38   while read line; do
    39     39   	case $line in
    40     40   		@unexec*) ;;
    41     41   		@ignore*) ;;
    42     42   		@dirrm*)
    43         -			test -d "${STAGEDIR}/${tmpprefix}/${line#* }" || \
           43  +			[ -d "${STAGEDIR}/${tmpprefix}/${line#* }" ] || \
    44     44   				ERRS="${ERRS} ${line}"
    45     45   			;;
    46     46   		@comment*) ;;
    47     47   		@cwd) tmpprefix=${PREFIX} ;;
    48     48   		@cwd*) tmpprefix=${line#* } ;;
    49     49   		@exec*)
    50     50   			dirname=${tmplastplist%/*}
................................................................................
    61     61   		@owner*) tmpowner=${line#* } ;;
    62     62   		@group) unset tmpgroup ;;
    63     63   		@group*) tmpgroup=${line#* } ;;
    64     64   		@*) ${DO_NADA} ;;
    65     65   		*)
    66     66   			tmplastplist=$line ;
    67     67   			chown ${tmpowner:-root}:${tmgroup:-wheel} ./$tmpprefix/$line
    68         -			if [ -n "$tmpmode" ]; then
    69         -				chmod $tmpmode ./$tmpprefix/$line
    70         -			fi
           68  +			[ -n "$tmpmode" ] && chmod $tmpmode ./$tmpprefix/$line
    71     69   			echo "./${tmpprefix}/${line}" >> ${PAXLIST}
    72     70   		;;
    73     71   	esac
    74     72   done < ${PLIST}
    75     73   
    76     74   if [ -n "${ERRS}" ]; then
    77     75   	echo "=====> Some files or directory from the plist cannot be found:"