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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
		*)
			echo ${line} | pax -p e -drw /
			;;
	esac
done < ${PAXLIST}

# Fix hardlinks by linking each file to the previous if the inodes match
find ${STAGEDIR} -type f ! -links 1 -ls|awk '{print $1 " " $11}'| sort -n | while read line; do
	set -- $line
	tmpinode=$1
	tmpfile=${2##${STAGEDIR}}

	if [ "${tmpinode}" = "${lastinode}" ]; then
		ln -f ${lastfile} ${tmpfile}
	fi
	lastinode=$tmpinode
	lastfile=$tmpfile
done
exit 0







|











81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
		*)
			echo ${line} | pax -p e -drw /
			;;
	esac
done < ${PAXLIST}

# Fix hardlinks by linking each file to the previous if the inodes match
find ${STAGEDIR} -type f -links +1 -ls|awk '{print $1 " " $11}'| sort -n | while read line; do
	set -- $line
	tmpinode=$1
	tmpfile=${2##${STAGEDIR}}

	if [ "${tmpinode}" = "${lastinode}" ]; then
		ln -f ${lastfile} ${tmpfile}
	fi
	lastinode=$tmpinode
	lastfile=$tmpfile
done
exit 0