solus-packages/common/Scripts/update_stateless.sh
Thomas Staudinger 96bf8c5dcb common: Rework update_stateless.sh script for monorepo
Also update STATELESSNESS file

Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
2024-05-30 01:00:14 +02:00

26 lines
452 B
Bash
Executable file

#!/bin/sh
if [ -e "STATELESSNESS" ]; then
rm STATELESSNESS
fi
touch STATELESSNESS
pushd ../packages
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