[Slackbuilds-users] Slackbuild helper script
Андрій
anddt at ukr.net
Sat Feb 21 20:27:50 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Enguerrand de Rochefort wrote:
> Hi all
Hi!
>
> I was wondering if this is something that would be of interest for the
community or if everybody has their own solutions in place anyways. If
there is interest please let me know and please also advise what would
be the preferred way of sharing it, as it was not obvious to me from the
Slackbuilds.org site FAQ how to contribute scripts that are not actual
slackbuild scripts...
>
I wrote some bash functions, here:
export OPTS="LANG=C NUMJOBS=-j2 TAG=_anddt PKGTYPE=txz TMP=/tmp/AndDT
OUTPUT=/srv/ftp/packages-testing"
sbdl ()
{
for i in "$@";
do
wget $i -O - | tar zxvf - ;
done
}
sbget ()
{
cp -vi -vr $(find /home/anddt/git/SBo -maxdepth 2 -mindepth 2 -type
d -name "${1}") .
}
sbinfo ()
{
find /home/anddt/git/SBo -maxdepth 2 -mindepth 2 -type d -name
"${1}" -exec cat {}/${1}.info \;
}
sbmake ()
{
sbget $1 && cd $1 && sbsrc && sbmk $OPTS2 && cd ..
}
sbmk ()
{
dtach -c compiling sudo $OPTS "$@" sh ./`pwd |rev |cut -d \/ -f 1
|rev`.SlackBuild
}
sbmk_log ()
{
( dtach -c compiling sudo $OPTS "$@" sh ./`pwd |rev |cut -d \/ -f 1
|rev`.SlackBuild ) 2>&1 | tee ./log.txt
}
sbopending ()
{
curl -s http://slackbuilds.org/pending/ | awk 'NR > 9' | sed -e
"s:\ \;:\t:g" -e "s:\/::g" -e "s:<tr>::g" -e "s:<td>::g" -e
"s:<code>::g" -e "s:<html>::g" -e "s:<body>::g" -e "s:<table>::g" -e
"s:<hr>::g" -e :a -e '$d;N;2,4ba' -e 'P;D'
}
sbreadme ()
{
cat $(find /home/anddt/git/SBo -maxdepth 2 -mindepth 2 -type d -name
"${1}")/README*
}
sbreq ()
{
for i in $(cat $(basename `pwd`).info |grep REQUIRES |cut -d\" -f 2);
do
echo $i;
done
}
sbsrc ()
{
. $(pwd |rev |cut -d \/ -f 1 |rev).info && for i in $DOWNLOAD;
do
FILE=$(echo $i |rev |cut -d\/ -f1 |rev);
if [ ! -f "./$FILE" ]; then
wget $i;
else
echo "$FILE is already here";
fi;
done
}
Hope it would be useful for you.
- --
Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJU6OpFAAoJENt8ZrcV3IiYFtwP/i8C2op0Cokb1aBHOoW/pvny
+6WLtUxXlJMXsrv8+EmU8l7b3i+fZLQjPBCnKaiPkJektqT3HQ3KHNo9STrhOOuf
/0r3q/jfD5QyQp1U3nq7iSkBfUd+zM+sotK3bfGjG8eghrRx+RYrtC/smDobeyD5
MkUmt1yzZ7PnowH4uWCQZfHVq3bcR2dVJClrdCgmE4krmm2Yd64a2ZM4V7/fBX7C
T6JTM8iKWQIXNsQYXBiKN2xs+rC+iwCPcX4prDGPcxEfuR0sS945kEs+PPBLngfC
jrenqbqnF2STVY2txk/tXDsANRuOWPaZyt+gzU/U87tjKJMzCGd07vIEcGPx9/dz
xl5AWQzQtP05qd//LK041V0aH1fen2Q3VlEZfYQAipfcBbh7PpNxtiBmp3HxqW3j
hdYRfyRjZCwjvRIryWqgP7VykrjYAJbv7qgH4WVQ2oQFW17Gbjoy5+Y/H3oue7rW
k7Blt1JzcWnjFPFLc10sPfGtB+dAyrIb7EoKcBqgGfD22OhnTPfgZONvrGm7NgLT
HNG8ZXSSe0hpkexHlMGdbKP1mqqddK8Ja4y4M2OnruzDdP0aIp1Fm5oy+dCMtOgf
50CEFzmrXKEgBIwTMh9exk9ecvhN7M36omdWlbI8wY/7vJlXxUXIvrrTFlplcXj0
n1LpNER6ZxFXGRbnOfUB
=D0lu
-----END PGP SIGNATURE-----
More information about the SlackBuilds-users
mailing list