Updated generate script

This commit is contained in:
Dimitris Zlatanidis 2023-03-05 16:30:31 +02:00
parent f774d2ef47
commit a9c3c368cc

View file

@ -1,8 +1,16 @@
#!/bin/bash
# gen_sbo_txt.sh is a script to build a SLACKBUILDS.TXT file.
# Thanks to bassmadrigal from LQ forum.
# https://www.linuxquestions.org/questions/slackware-14/script-for-building-a-slackbuilds-txt-4175598436/
for i in */*; do
NAME=$(echo $i | cut -d "/" -f2)
FILES=$(ls $i)
source $i/${NAME}.info
SHORTDES=$(grep -m 1 $NAME $i/slack-desc | cut -d " " -f2-)
DESCRIPTION=$(grep -m 1 $NAME $i/slack-desc | cut -d " " -f2-)
echo SLACKBUILD NAME: $NAME
echo SLACKBUILD LOCATION: ./$i
echo SLACKBUILD FILES: $FILES
@ -12,6 +20,7 @@ for i in */*; do
echo SLACKBUILD MD5SUM: $MD5SUM
echo SLACKBUILD MD5SUM_x86_64: $MD5SUM_x86_64
echo SLACKBUILD REQUIRES: $REQUIRES
echo SLACKBUILD SHORT DESCRIPTION: $SHORTDES
echo SLACKBUILD SHORT DESCRIPTION: $DESCRIPTION
echo
done