Advertisement
hakonhagland

pp-create-bin

Oct 23rd, 2021 (edited)
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ## myscript.pl
  2.  
  3. use strict;
  4. use warnings;
  5. use Log::Log4perl qw(:easy);
  6. Log::Log4perl->easy_init($ERROR);
  7. ERROR( "ERROR MESSAGE" );
  8.  
  9.  
  10. ## create_script.sh : creates a standalone binary myscript2 of myscript.pl
  11. ## Remember to install PAR::Packer first
  12.  
  13. cpanm -v -L local Log::Log4perl
  14. perlversion=$(perl -MConfig -e 'print $Config{version}')
  15. pp -B \
  16. -I ./local/lib/perl5 \
  17. -a "./local/lib/perl5/;$perlversion/" \
  18. -o myscript2 \
  19. myscript.pl
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement