solus-packages/common/Scripts/update_stateless.sh
Bryan T. Meyers 69491ad3e4 common: General cleanup and fixes
- Created Legacy directory for known unused scripts
 - Moved known unused scripts to Legacy
 - Moved legacy docs to Legacy
 - Moved legacy Templates to Legacy
 - Fixed sync_licenses.sh script
 - Added packages, sync-licenses, and stateless to Makefile
 - Added switch_repo_domains to Makefile.toplevel and Makefile.common
 - Added new script for updateing stateless report (STATELESSNESS)
2020-02-20 16:28:30 -05:00

22 lines
No EOL
356 B
Bash
Executable file

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