diff --git a/base/sysfiles/sysfiles.conf b/base/sysfiles/sysfiles.conf index 55e210013..cee4597d5 100644 --- a/base/sysfiles/sysfiles.conf +++ b/base/sysfiles/sysfiles.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../sysfiles/sysfiles.conf -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -66,11 +66,15 @@ EOT rm -f etc/{ROCK-,SDE-,}VERSION rm -rf etc/{ROCK,SDE}-CONFIG echo "OpenSDE $sdever (`date +%Y/%m/%d`)" > etc/SDE-VERSION - if [ -f $base/target/$target/version.txt ]; then - cp -f $base/target/$target/version.txt etc/VERSION - else - cp -f etc/SDE-VERSION etc/VERSION - fi + for x in $( get_expanded $base/target/% $targetchain ); do + for y in version.txt VERSION; do + [ -s "$x/$y" ] || continue + + cat "$x/$y" >> etc/VERSION + break + done + done + [ -s etc/VERSION ] || cp -f etc/SDE-VERSION etc/VERSION cp -r $base/config/$config/. etc/SDE-CONFIG echo "Installing btee ..."