From c3238e690a1f3254d282623e047f0124206de9b9 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 10 Jun 2020 19:42:04 -0400 Subject: cleanup, wip for eventual release --- mkslackinfo | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mkslackinfo') diff --git a/mkslackinfo b/mkslackinfo index db11244..c4d99ce 100755 --- a/mkslackinfo +++ b/mkslackinfo @@ -1,18 +1,20 @@ #!/usr/bin/perl -w -# Create a SB.o compliant .info file +# Create a SBo compliant .info file # (and a .SlackBuild from a template, if one doesn't already exist, # and a slack-desc if a README exists) +($SELF = $0) =~ s,.*/,,; + # Fill in your name and email address here: -$name = 'B. Watson'; -$email = 'yalhcru@gmail.com'; +$name = $ENV{SBO_NAME} || die "$SELF: please source ~/.sbostuff.cfg"; +$email = $ENV{SBO_EMAIL} || die "$SELF: please source ~/.sbostuff.cfg"; use LWP::Simple; use Digest::MD5 'md5_hex'; sub usage { - die "usage: mkslackinfo url [homepage] [version]\n"; + die "usage: $SELF url [homepage] [version]\n"; } $url = shift || &usage; -- cgit v1.2.3