common: Rework update_stateless.sh script for monorepo

Also update STATELESSNESS file

Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
This commit is contained in:
Thomas Staudinger 2024-05-30 00:57:42 +02:00
parent 701d781e19
commit 96bf8c5dcb
2 changed files with 194 additions and 361 deletions

File diff suppressed because it is too large Load diff

View file

@ -6,17 +6,21 @@ fi
touch STATELESSNESS
pushd ..
pushd ../packages
for f in `ls -1`; do
if [ -e "$f/pspec.xml" ]; then
grep -H \>/etc $f/pspec.xml >> common/STATELESSNESS
fi
if [ -e "$f/pspec_x86_64.xml" ]; then
grep -H \>/etc $f/pspec_x86_64.xml >> common/STATELESSNESS
fi
for f in `ls`; do
pushd $f
for p in `ls`; do
if [ -e "$p/pspec.xml" ]; then
grep -H \>/etc $p/pspec.xml >> ../../common/STATELESSNESS
fi
if [ -e "$p/pspec_x86_64.xml" ]; then
grep -H \>/etc $p/pspec_x86_64.xml >> ../../common/STATELESSNESS
fi
done
popd
done
popd
exit 0
exit 0