Return to repo list

stctpw

Portage-compatible patch maker for suckless tools.
Return to HMagellan.com

commit 37790e73153d0996cfbdf25033b5ac3438326e66
parent 8899872c0f94023c2f014c81b3ae5d94139d0a9e
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Tue, 28 Jul 2020 20:07:58 -0500

First semi-functional version

Diffstat:
Mstctpw.sh | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/stctpw.sh b/stctpw.sh @@ -64,7 +64,6 @@ fi # Set up environment mkdir -p /var/tmp/stctpw cd /var/tmp/stctpw -cp $MODFILE /var/tmp/stctpw # Get the archive (has potential interactive elements) if [[ $FETCHWEB -ne 1 ]]; then @@ -74,5 +73,15 @@ if [[ $FETCHWEB -ne 1 ]]; then TARGETDISTFILES="$TARGETDISTFILES $line" done if [[ $numlines -ge 2 ]]; then - + multidistfileprompt $TARGETDISTFILES + else + tar -xvzf /var/cache/distfiles/$TARGETDISTFILES + cp $TARGETDISTFILES a + cp $TARGETDISTFILES b + mv $MODFILE b/config.def.h + diff -up a b > config.patch + if [[ $INSTALLPATCH -eq 1 ]]; then + echo "Will install" + fi + fi fi