added packages to the prereq list since we are not building them with the global...
[lxqt-slackware.git] / slack-desc / CHECK_SLACKDESC.sh
CommitLineData
73c8ba7d 1#! /bin/bash
2
3CWD=$(pwd)
4
5for line in $(cat ../modules.txt); do
6 if [[ ! -f ${CWD}/$line ]]; then
7 # we don't have a slack-desc.
8 echo "Short description for $line:"
9 read desc
10 export DESCR="$desc"
11 ${CWD}/make_slack-desc.sh $line
12 unset DESCR
13 fi
14done
15
16# let's delete all older modules
17FILES=$(/bin/ls $CWD)
18for f in $FILES; do
19 if [ "$(grep -Poc $f ../modules.txt)" -lt 1 ]; then
aa41643e 20 if [[ $f != "CHECK_SLACKDESC.sh" && $f != "make_slack-desc.sh" && $f != "libfm-extra" ]]; then
73c8ba7d 21 rm $f
22 fi
aa41643e 23 fi
73c8ba7d 24done