Check-in [eb54d44aaa]

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

Overview
Comment:Sort by the inode to ensure all are processed together in order
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: eb54d44aaa493cd82f7f7864ceaf6a63621e2c5c
User & Date: bdrewery 2012-06-19 14:32:06
Context
2012-06-20
06:22
in all cases @exec can safely be run as post-install at once.

No need to split all the execution check-in: d0812f289d user: bapt tags: trunk

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
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 -k 1 | 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