Skip to content

Commit

Permalink
packer.pl v1.21 + perldoc (#104)
Browse files Browse the repository at this point in the history
* added packer.pl

* fixed packer.pl for git repo

* added packer v1.10 + packed script and exe

* v1.20

various fixes

* packer.pl v1.21 + perldoc

better packer.pl doc + added perldoc tool

* deleted packed/perlpowertools.exe
  • Loading branch information
kal247 committed Feb 2, 2022
1 parent 8635ab2 commit 8a1ef6a
Show file tree
Hide file tree
Showing 122 changed files with 5,541 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ Makefile [23456]
MANIFEST*[123456789]
Changes*[123456789]

/test/
Empty file modified bin/addbib
100644 → 100755
Empty file.
Empty file modified bin/apply
100644 → 100755
Empty file.
Empty file modified bin/ar
100644 → 100755
Empty file.
Empty file modified bin/arch
100644 → 100755
Empty file.
Empty file modified bin/arithmetic
100644 → 100755
Empty file.
Empty file modified bin/asa
100644 → 100755
Empty file.
Empty file modified bin/awk
100644 → 100755
Empty file.
Empty file modified bin/banner
100644 → 100755
Empty file.
Empty file modified bin/basename
100644 → 100755
Empty file.
Empty file modified bin/bc
100644 → 100755
Empty file.
Empty file modified bin/cal
100644 → 100755
Empty file.
Empty file modified bin/cat
100644 → 100755
Empty file.
Empty file modified bin/chgrp
100644 → 100755
Empty file.
Empty file modified bin/ching
100644 → 100755
Empty file.
Empty file modified bin/chmod
100644 → 100755
Empty file.
Empty file modified bin/chown
100644 → 100755
Empty file.
Empty file modified bin/clear
100644 → 100755
Empty file.
Empty file modified bin/cmp
100644 → 100755
Empty file.
Empty file modified bin/col
100644 → 100755
Empty file.
Empty file modified bin/colrm
100644 → 100755
Empty file.
Empty file modified bin/comm
100644 → 100755
Empty file.
Empty file modified bin/cp
100644 → 100755
Empty file.
Empty file modified bin/cut
100644 → 100755
Empty file.
Empty file modified bin/date
100644 → 100755
Empty file.
Empty file modified bin/dc
100644 → 100755
Empty file.
Empty file modified bin/deroff
100644 → 100755
Empty file.
Empty file modified bin/diff
100644 → 100755
Empty file.
Empty file modified bin/dirname
100644 → 100755
Empty file.
Empty file modified bin/du
100644 → 100755
Empty file.
Empty file modified bin/echo
100644 → 100755
Empty file.
Empty file modified bin/ed
100644 → 100755
Empty file.
Empty file modified bin/env
100644 → 100755
Empty file.
Empty file modified bin/expand
100644 → 100755
Empty file.
Empty file modified bin/expr
100644 → 100755
Empty file.
Empty file modified bin/factor
100644 → 100755
Empty file.
Empty file modified bin/false
100644 → 100755
Empty file.
Empty file modified bin/file
100644 → 100755
Empty file.
Empty file modified bin/find
100644 → 100755
Empty file.
Empty file modified bin/fish
100644 → 100755
Empty file.
Empty file modified bin/fmt
100644 → 100755
Empty file.
Empty file modified bin/fold
100644 → 100755
Empty file.
Empty file modified bin/fortune
100644 → 100755
Empty file.
Empty file modified bin/from
100644 → 100755
Empty file.
Empty file modified bin/glob
100644 → 100755
Empty file.
Empty file modified bin/grep
100644 → 100755
Empty file.
Empty file modified bin/hangman
100644 → 100755
Empty file.
Empty file modified bin/head
100644 → 100755
Empty file.
Empty file modified bin/id
100644 → 100755
Empty file.
Empty file modified bin/install
100644 → 100755
Empty file.
Empty file modified bin/join
100644 → 100755
Empty file.
Empty file modified bin/kill
100644 → 100755
Empty file.
Empty file modified bin/ln
100644 → 100755
Empty file.
Empty file modified bin/lock
100644 → 100755
Empty file.
Empty file modified bin/look
100644 → 100755
Empty file.
Empty file modified bin/ls
100644 → 100755
Empty file.
Empty file modified bin/mail
100644 → 100755
Empty file.
Empty file modified bin/man
100644 → 100755
Empty file.
Empty file modified bin/maze
100644 → 100755
Empty file.
Empty file modified bin/mimedecode
100644 → 100755
Empty file.
Empty file modified bin/mkdir
100644 → 100755
Empty file.
Empty file modified bin/mkfifo
100644 → 100755
Empty file.
Empty file modified bin/moo
100644 → 100755
Empty file.
Empty file modified bin/morse
100644 → 100755
Empty file.
Empty file modified bin/od
100644 → 100755
Empty file.
Empty file modified bin/par
100644 → 100755
Empty file.
Empty file modified bin/paste
100644 → 100755
Empty file.
Empty file modified bin/patch
100644 → 100755
Empty file.
29 changes: 29 additions & 0 deletions bin/perldoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env perl
#
# perldoc - perldoc for PerlPowerTools

=begin metadata
Name: perldoc
Description: perldoc for perlpowertools
Author: jul, kaldor@cpan.org
License: Artistic License 2.0
=end metadata
=cut

use strict;
use warnings;
use utf8;
use File::Basename;
use Cwd 'abs_path';

# let perldoc also search in perlpowertools bin
unshift @INC, dirname(abs_path(__FILE__));

# copy-paste from the real perldoc
require 5;
BEGIN { $^W = 1 if $ENV{'PERLDOCDEBUG'} }
use Pod::Perldoc;
exit( Pod::Perldoc->run() );
51 changes: 51 additions & 0 deletions bin/perlpowertools
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/env perl
#
# perlpowertools - helper script for PerlPowerTools

use strict;
use warnings;
use utf8;
use Getopt::Std;
use File::Basename;
use Cwd 'abs_path';

our $VERSION = qw( 1.024 );
my $program = 'perlpowertools';
my @tools = qw( addbib apply ar arch arithmetic asa awk banner basename bc cal cat chgrp ching chmod chown clear cmp col colrm comm cp cut date dc deroff diff dirname du echo ed env expand expr factor false file find fish fmt fold fortune from glob grep hangman head id install join kill ln lock look ls mail man maze mimedecode mkdir mkfifo moo morse nl od par paste patch perldoc pig ping pom ppt pr primes printenv printf pwd rain random rev rm rmdir robots rot13 shar sleep sort spell split strings sum tac tail tar tee test time touch tr true tsort tty uname unexpand uniq units unpar unshar uudecode uuencode wc what which whois words wump xargs yes );
my $usage = <<EOF;
Usage: $program [-hVl]
$program tool [arg ...]
-h, --help help
-V, --version version
-l list tools
EOF

# options
$Getopt::Std::STANDARD_HELP_VERSION = 1;
my %options = ();
getopts("hVl", \%options) or die $usage;

my $help = $options{h} || 0;
my $version = $options{V} || 0;
my $list = $options{l} || 0;

die $usage if $help;
die $VERSION . "\n" if $version;
die join ("\n", @tools) . "\n" if $list;

########
# MAIN #
########

my $tool = shift || '';
die $usage if not grep { $tool eq $_ } @tools;

my $file = defined $ENV{PAR_TEMP} ? "$ENV{PAR_TEMP}/inc/script/$tool" : dirname(abs_path($0)) . "/$tool";
$0 = $tool; # for usage/warning/error messages
my $return = do $file;
die $@ if $@;
die "$file: $!" unless defined $return;

exit 1;
Empty file modified bin/pig
100644 → 100755
Empty file.
Empty file modified bin/ping
100644 → 100755
Empty file.
Empty file modified bin/pom
100644 → 100755
Empty file.
Empty file modified bin/ppt
100644 → 100755
Empty file.
Empty file modified bin/pr
100644 → 100755
Empty file.
Empty file modified bin/primes
100644 → 100755
Empty file.
Empty file modified bin/printenv
100644 → 100755
Empty file.
Empty file modified bin/printf
100644 → 100755
Empty file.
Empty file modified bin/pwd
100644 → 100755
Empty file.
Empty file modified bin/rain
100644 → 100755
Empty file.
Empty file modified bin/random
100644 → 100755
Empty file.
Empty file modified bin/rev
100644 → 100755
Empty file.
Empty file modified bin/rm
100644 → 100755
Empty file.
Empty file modified bin/rmdir
100644 → 100755
Empty file.
Empty file modified bin/robots
100644 → 100755
Empty file.
Empty file modified bin/rot13
100644 → 100755
Empty file.
Empty file modified bin/shar
100644 → 100755
Empty file.
Empty file modified bin/sleep
100644 → 100755
Empty file.
Empty file modified bin/sort
100644 → 100755
Empty file.
Empty file modified bin/spell
100644 → 100755
Empty file.
Empty file modified bin/split
100644 → 100755
Empty file.
Empty file modified bin/strings
100644 → 100755
Empty file.
Empty file modified bin/sum
100644 → 100755
Empty file.
Empty file modified bin/tac
100644 → 100755
Empty file.
Empty file modified bin/tail
100644 → 100755
Empty file.
Empty file modified bin/tar
100644 → 100755
Empty file.
Empty file modified bin/tee
100644 → 100755
Empty file.
Empty file modified bin/test
100644 → 100755
Empty file.
Empty file modified bin/time
100644 → 100755
Empty file.
Empty file modified bin/touch
100644 → 100755
Empty file.
Empty file modified bin/tr
100644 → 100755
Empty file.
Empty file modified bin/true
100644 → 100755
Empty file.
Empty file modified bin/tsort
100644 → 100755
Empty file.
Empty file modified bin/tty
100644 → 100755
Empty file.
Empty file modified bin/uname
100644 → 100755
Empty file.
Empty file modified bin/unexpand
100644 → 100755
Empty file.
Empty file modified bin/uniq
100644 → 100755
Empty file.
Empty file modified bin/units
100644 → 100755
Empty file.
Empty file modified bin/unpar
100644 → 100755
Empty file.
Empty file modified bin/unshar
100644 → 100755
Empty file.
Empty file modified bin/uudecode
100644 → 100755
Empty file.
Empty file modified bin/uuencode
100644 → 100755
Empty file.
Empty file modified bin/wc
100644 → 100755
Empty file.
Empty file modified bin/what
100644 → 100755
Empty file.
Empty file modified bin/which
100644 → 100755
Empty file.
Empty file modified bin/whois
100644 → 100755
Empty file.
Empty file modified bin/words
100644 → 100755
Empty file.
Empty file modified bin/wump
100644 → 100755
Empty file.
Empty file modified bin/xargs
100644 → 100755
Empty file.
Empty file modified bin/yes
100644 → 100755
Empty file.
Loading

0 comments on commit 8a1ef6a

Please sign in to comment.