![kueller](/assets/img/avatar_default.png)
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@5734 504e572c-2e33-0410-9681-be2bf7408885
57 lines
1.6 KiB
Bash
Executable File
57 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
PKGLIST=.pkglist
|
|
TMPFILE=`mktemp`
|
|
|
|
if [ ! -f $HOME/.ViitorMake ]; then
|
|
echo "Please run Scripts/initViitorMake"
|
|
echo "From ViitorMake Root Direktory"
|
|
echo "This will create a File $HOME/.ViitorMake"
|
|
echo "with necessary information for running"
|
|
echo "ViitorMake Scripts"
|
|
exit 10
|
|
fi
|
|
|
|
source $HOME/.ViitorMake
|
|
|
|
WDIR=`pwd`
|
|
source $VMAKEDIR/defsys
|
|
source $VMAKEDIR/functions/functions
|
|
|
|
for i in `cat $VMAKEDIR/BaseBuild/Basesys/Basesys.dmk|sed -e "/^#/d"|sed -e "/^$/d"|awk '{print $2}'`; do
|
|
if ! egrep -q "$i$" $TMPFILE; then
|
|
echo $i >>$TMPFILE
|
|
fi
|
|
done
|
|
for i in `cat $TMPFILE|sed -e "/^#/d"|sed -e "/^$/d"`; do
|
|
MODNAME=`basename $i`
|
|
if [ "$MODNAME" == "cdboot" ]; then
|
|
continue
|
|
fi
|
|
PKGPATH=`egrep "^SRCPATH=" $VMAKEDIR/BaseBuild/$i|awk -F"=" '{print $2}'|sed -e "s/^\///"`
|
|
if grep -q "SN=$MODNAME;" $DISTTARGET/$PKGLIST; then
|
|
echo "Boot $PKGPATH $MODNAME"
|
|
fi
|
|
done
|
|
rm $TMPFILE
|
|
|
|
for BuildFile in `cat $VMAKEDIR/SysBuild/DistCluster.dmk|sed -e "/^#/d"|sed -e "/^$/d"|awk '{print $2}'`; do
|
|
cat $VMAKEDIR/SysBuild/$BuildFile|sed -e "/^$/d"|sed -e "/^#/d" >$TMPFILE
|
|
exec 3<$TMPFILE
|
|
while read <&3 FLAG MODULE; do
|
|
if [ "$FLAG" == "0" ] || [ "$FLAG" == "1" ]; then
|
|
MODNAME=`basename $MODULE`
|
|
PKGPATH=`egrep "^SRCPATH=" $VMAKEDIR/SysBuild/$MODULE|awk -F"=" '{print $2}'|sed -e "s/^\///"`
|
|
if grep -q SHNAMELIST $VMAKEDIR/SysBuild/$MODULE; then
|
|
SHNAMELIST=`egrep "^SHNAMELIST" $VMAKEDIR/SysBuild/$MODULE|sed -e "s/SHNAMELIST=//"|sed -e "s/\"//g"`
|
|
for MODNAME in $SHNAMELIST; do
|
|
echo "Boot $PKGPATH $MODNAME"
|
|
done
|
|
else
|
|
echo "Boot $PKGPATH $MODNAME"
|
|
fi
|
|
fi
|
|
done
|
|
exec 3<&-
|
|
done
|