You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,9 +155,9 @@ The following compile-time variable can tighten further the security of PEB.
155
155
PEB can also use any Perl on PATH.
156
156
157
157
## Preparing a Perl Distribution for PEB
158
-
Sometimes it is important to minimize the size of the relocatable (or portable) Perl distribution used for a PEB-based application. ``{PEB_binary_directory}/sdk/compactor.pl`` script is one solution to this problem. It finds all dependencies of the Perl scripts in the ``{PEB_binary_directory}/resources/app`` directory and copies them in a new ``{PEB_binary_directory}/perl/lib`` folder; a new ``{PEB_binary_directory}/perl/bin`` is also created. The original ``bin`` and ``lib`` folders are saved as ``{PEB_binary_directory}/perl/bin-original`` and ``{PEB_binary_directory}/perl/lib-original`` respectively. These directories should be manually archived or removed.
158
+
Sometimes it is important to minimize the size of the relocatable (or portable) Perl distribution used by a PEB-based application. ``{PEB_binary_directory}/sdk/compactor.pl`` script is one solution to this problem. It finds all dependencies of all Perl scripts in the ``{PEB_binary_directory}/resources/app`` directory and copies them in a new ``{PEB_binary_directory}/perl/lib`` folder; a new ``{PEB_binary_directory}/perl/bin`` is also created. The original ``bin`` and ``lib`` folders are saved as ``{PEB_binary_directory}/perl/bin-original`` and ``{PEB_binary_directory}/perl/lib-original`` respectively. These directories should be manually archived for future use or removed.
159
159
160
-
``compactor.pl`` should be started using ``{PEB_binary_directory}/compactor.sh`` on a Linux and Mac machines and ``{PEB_binary_directory}/compactor.cmd`` on a Windows machine to ensure that only the Perl distribution used by PEB is going to start ``compactor.pl``. This is necessary to avoid dependency mismatches with any other Perl on PATH.
160
+
``compactor.pl`` should be started using ``{PEB_binary_directory}/compactor.sh`` on a Linux or a Mac machine and ``{PEB_binary_directory}/compactor.cmd`` on a Windows machine to ensure that only the Perl distribution used by PEB is going to start ``compactor.pl``. This is necessary to avoid dependency mismatches with any other Perl on PATH.
161
161
162
162
``compactor.pl`` relies on ``Module::ScanDeps`` and ``File::Copy::Recursive`` CPAN modules, which are located in the ``{PEB_binary_directory}/sdk/lib`` folder.
@@ -405,7 +407,7 @@ File::Copy::Recursive - Perl extension for recursively copying files and directo
405
407
fmove($orig,$new[,$buf]) or die $!;
406
408
rmove($orig,$new[,$buf]) or die $!;
407
409
dirmove($orig,$new[,$buf]) or die $!;
408
-
410
+
409
411
rcopy_glob("orig/stuff-*", $trg [, $buf]) or die $!;
410
412
rmove_glob("orig/stuff-*", $trg [,$buf]) or die $!;
411
413
@@ -428,7 +430,7 @@ returns the same as File::Copy::copy() in scalar context and 1,0,0 in list conte
428
430
429
431
This function recursively traverses the $orig directory's structure and recursively copies it to the $new directory.
430
432
$new is created if necessary (multiple non existant directories is ok (IE foo/bar/baz). The script logically and portably creates all of them if necessary).
431
-
It attempts to preserve the mode (see Preserving Mode below) and
433
+
It attempts to preserve the mode (see Preserving Mode below) and
432
434
by default it copies all the way down into the directory, (see Managing Depth) below.
433
435
If a directory is not specified it croaks just like fcopy croaks if its not a file that is specified.
434
436
@@ -437,7 +439,7 @@ In list context it returns the number of files and directories, number of direct
Normally it stops and return's if a copy fails, to continue on regardless set $File::Copy::Recursive::SkipFlop to true.
442
444
443
445
local $File::Copy::Recursive::SkipFlop = 1;
@@ -447,7 +449,7 @@ That way it will copy everythgingit can ina directory and won't stop because of
447
449
=head2rcopy()
448
450
449
451
This function will allow you to specify a file *or* directory. It calls fcopy() if its a file and dircopy() if its a directory.
450
-
If you call rcopy() (or fcopy() for that matter) on a file in list context, the values will be 1,0,0 since no directories and no depth are used.
452
+
If you call rcopy() (or fcopy() for that matter) on a file in list context, the values will be 1,0,0 since no directories and no depth are used.
451
453
This is important becasue if its a directory in list context and there is only the initial directory the return value is 1,1,1.
452
454
453
455
=head2rcopy_glob()
@@ -482,7 +484,7 @@ So if you:
482
484
483
485
rmove('foo/bar/baz', '/etc/');
484
486
# "baz" is removed from foo/bar after it is successfully copied to /etc/
485
-
487
+
486
488
local $File::Copy::Recursive::Remvbase = 1;
487
489
rmove('foo/bar/baz','/etc/');
488
490
# if baz is successfully copied to /etc/ :
@@ -572,7 +574,7 @@ to false;
572
574
=head2Managing Depth
573
575
574
576
You can set the maximum depth a directory structure is recursed by setting:
575
-
$File::Copy::Recursive::MaxDepth
577
+
$File::Copy::Recursive::MaxDepth
576
578
to a whole number greater than 0.
577
579
578
580
=head2SymLinks
@@ -614,7 +616,7 @@ This should be unnecessary most of the time but its there if you need it :)
614
616
615
617
=head2Turning off stat() check
616
618
617
-
By default the files or directories are checked to see if they are the same (IE linked, or two paths (absolute/relative or different relative paths) to the same file) by comparing the file's stat() info.
619
+
By default the files or directories are checked to see if they are the same (IE linked, or two paths (absolute/relative or different relative paths) to the same file) by comparing the file's stat() info.
618
620
It's a very efficient check that croaks if they are and shouldn't be turned off but if you must for some weird reason just set $File::Copy::Recursive::PFSCheck to a false value. ("PFS" stands for "Physical File System")
619
621
620
622
=head2Emulating cp -rf dir1/ dir2/
@@ -665,7 +667,7 @@ This is false by default so that a check is done to see if the source directory
665
667
666
668
If you ever find a situation where $CopyLoop = 1 is desirable let me know (IE its a bad bad idea but is there if you want it)
667
669
668
-
(Note: On Windows this was necessary since it uses stat() to detemine samedness and stat() is essencially useless for this on Windows.
670
+
(Note: On Windows this was necessary since it uses stat() to detemine samedness and stat() is essencially useless for this on Windows.
669
671
The test is now simply skipped on Windows but I'd rather have an actual reliable check if anyone in Microsoft land would care to share)
670
672
671
673
=head1SEE ALSO
@@ -691,6 +693,6 @@ Daniel Muey, L<http://drmuey.com/cpan_contact.pl>
691
693
Copyright 2004 by Daniel Muey
692
694
693
695
This library is free software; you can redistribute it and/or modify
0 commit comments