|
|
|
@ -58,27 +58,11 @@ if [ $toolsdir = tools.cross ]; then |
|
|
|
mkdir -p build/$ROCKCFG_ID/root/var/adm/logs |
|
|
|
fi |
|
|
|
|
|
|
|
# Subversion has really big ".svn" subdirs. This has much better performance |
|
|
|
# than the "find ... ! -path '*/.svn*' ! -path '*/CVS*' ..." used earlier |
|
|
|
# in the x="$( .. )" statement. |
|
|
|
|
|
|
|
tmp1=`mktemp` tmp2=`mktemp` |
|
|
|
echo config/$config/. package/. scripts/. misc/. architecture/. target/. > $tmp1 |
|
|
|
|
|
|
|
while ! cmp -s $tmp1 $tmp2 |
|
|
|
do |
|
|
|
cat $tmp1 > $tmp2 |
|
|
|
find $( cat $tmp2 ) -maxdepth 1 -type d | \ |
|
|
|
egrep -v '/(\.svn|CVS)$' 2> /dev/null | sort -u > $tmp1 |
|
|
|
done |
|
|
|
|
|
|
|
x="$( find $( cat $tmp2 ) -mindepth 1 -maxdepth 1 \ |
|
|
|
! -name '*.cache' ! -name 'CVS' ! -name '.svn' \ |
|
|
|
x="$( bash scripts/xfind.sh config/$config/. package/. scripts/. \ |
|
|
|
misc/. architecture/. target/. ! -name '*.cache' \ |
|
|
|
-newer build/$ROCKCFG_ID/$toolsdir/.lastupdate \ |
|
|
|
-printf 'Found new/updated file: %p\n' 2> /dev/null )" |
|
|
|
|
|
|
|
rm -f $tmp1 $tmp2 |
|
|
|
|
|
|
|
if [ "$x" ] ; then |
|
|
|
echo_header Found $( echo "$x" | wc -l ) new/updated \ |
|
|
|
files in source tree: |
|
|
|
@ -188,7 +172,7 @@ if [ ! -f build/$ROCKCFG_ID/$toolsdir/.lastupdate ] ; then |
|
|
|
} |
|
|
|
# |
|
|
|
while read script ; do . $script |
|
|
|
done < <( find package/. target/$target/. misc/. -name 'wrappers.in' ) |
|
|
|
done < <( bash scripts/xfind.sh package/. target/$target/. misc/. -name 'wrappers.in' ) |
|
|
|
# |
|
|
|
echo_status "Building $toolsdir/wrapper/strip_wrapper." |
|
|
|
cat << 'EOT' > build/$ROCKCFG_ID/$toolsdir/wrapper/strip_wrapper.$$ |
|
|
|
@ -274,10 +258,10 @@ EOT |
|
|
|
# Create Parse-Config Collection |
|
|
|
# |
|
|
|
echo_status "Creating $toolsdir/lib/parse-config." |
|
|
|
find architecture/$arch/. package/. target/$target/. misc/ \ |
|
|
|
bash scripts/xfind.sh \ |
|
|
|
architecture/$arch/. package/. target/$target/. misc/ -type f \ |
|
|
|
'(' -name 'parse-config' -o -name 'parse-config-*' ')' \ |
|
|
|
'(' ! -name 'parse-config-x' -o ! -name 'parse-config-*-x' ')' \ |
|
|
|
! -path '*/\.svn/*' -type f \ |
|
|
|
-printf '%f\t%p\n' | sort | awk '{ $1="."; print; }' \ |
|
|
|
> build/$ROCKCFG_ID/$toolsdir/lib/parse-config.$$ |
|
|
|
mv build/$ROCKCFG_ID/$toolsdir/lib/parse-config.$$ \ |
|
|
|
|