Check-in [55de5ab438]

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

Overview
Comment:Use positive -links +1 as NOT 1 is confusing
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 55de5ab43894905b6a180c9d0c5cb48a1d2c57a4
User & Date: bdrewery 2012-06-19 14:29:54
Context
2012-06-19
14:32
Sort by the inode to ensure all are processed together in order check-in: eb54d44aaa user: bdrewery tags: trunk
14:29
Use positive -links +1 as NOT 1 is confusing check-in: 55de5ab438 user: bdrewery tags: trunk
05:21
Fix hardlinks after syncing files/@execs check-in: 0b6464e93d user: bdrewery tags: trunk
Changes

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

    81     81   		*)
    82     82   			echo ${line} | pax -p e -drw /
    83     83   			;;
    84     84   	esac
    85     85   done < ${PAXLIST}
    86     86   
    87     87   # Fix hardlinks by linking each file to the previous if the inodes match
    88         -find ${STAGEDIR} -type f ! -links 1 -ls|awk '{print $1 " " $11}'| sort -n | while read line; do
           88  +find ${STAGEDIR} -type f -links +1 -ls|awk '{print $1 " " $11}'| sort -n | while read line; do
    89     89   	set -- $line
    90     90   	tmpinode=$1
    91     91   	tmpfile=${2##${STAGEDIR}}
    92     92   
    93     93   	if [ "${tmpinode}" = "${lastinode}" ]; then
    94     94   		ln -f ${lastfile} ${tmpfile}
    95     95   	fi
    96     96   	lastinode=$tmpinode
    97     97   	lastfile=$tmpfile
    98     98   done
    99     99   exit 0