mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated generate script
This commit is contained in:
parent
f774d2ef47
commit
a9c3c368cc
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue