Generator um im BINARYTREE eine pkglist mit Shortname, Pfad zum Package, sowie Packagnamen
zu erstellen git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5127 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
b415af8d85
commit
c177f34a6a
18
GenPkgList
Executable file
18
GenPkgList
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
WDIR=`pwd`
|
||||||
|
|
||||||
|
DISTTARGET=$1
|
||||||
|
|
||||||
|
if [ ! $DISTTARGET ] || [ ! -d $DISTTARGET ]; then
|
||||||
|
echo "Usage: $0 <Path to Distribution Binary files>"
|
||||||
|
exit 10
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in `find $DISTTARGET -name "*.vpg"`; do
|
||||||
|
PKGFILE=`basename $i`
|
||||||
|
PKGPATH=`dirname $i`
|
||||||
|
PKGPATH=`echo $PKGPATH|sed -e "s%$DISTTARGET/%%"`
|
||||||
|
SHNAME=`extractvarchive $DISTTARGET/$PKGPATH/$PKGFILE meta|grep ModuleName|awk '{print $2}'`
|
||||||
|
echo "SN=$SHNAME;PF=$PKGFILE;PP=$PKGPATH"
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user