diff --git a/tools/gen_sbo_txt.sh b/tools/gen_sbo_txt.sh index 2555b64b..867b9982 100755 --- a/tools/gen_sbo_txt.sh +++ b/tools/gen_sbo_txt.sh @@ -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