Skip to content

Commit

Permalink
usrlocalpkg/admin/makebin: make /etc/mxpkg a variable
Browse files Browse the repository at this point in the history
'/etc/mxpkg' might get disted over whilst testing things,
so provide an option for own experiments.

+ salute a vi :)
  • Loading branch information
thomas committed Dec 19, 2024
1 parent f400489 commit deb84b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usrlocalpkg/admin/makebin
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use warnings;

# see /usr/local/package/admin/config for further descriptions

my $MXPKG = $ENV{MAKEBIN_MXPKG} || '/etc/mxpkg';
my $CFG = $ENV{MAKEBIN_CFG} || '/usr/local/package/admin/config';
my $LIBSRC = $ENV{MAKEBIN_LIBSRC} || '/usr/local/package/admin/lib';
my $BINDIR = $ENV{MAKEBIN_BINDIR} || '/usr/local/package/bin';
Expand Down Expand Up @@ -34,7 +35,7 @@ sub tilde_replace {

sub read_mxpkg {
my @ret;
open my $in,'<',"/etc/mxpkg" or die "/etc/.xmpg: $!\n";
open my $in,'<',$MXPKG or die "$MXPKG: $!\n";
while(<$in>) {
s/#.*//;
/\S/ or next;
Expand Down

0 comments on commit deb84b6

Please sign in to comment.