| 1 | #!/usr/bin/env perl | ||
| 2 | |||
| 3 | # Thin wrapper: everything, including error reporting and the exit code, | ||
| 4 | # lives in App::FileSync::CLI so it can be tested without a subprocess. | ||
| 5 | |||
| 6 | 182 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 182 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 182 | ▶ | use autodie qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 182 | ▶ | use FindBin qw($Bin); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | # A checkout's lib/ first, so bin/ runs the code beside it; an installed | ||
| 13 | # copy finds the modules on @INC as usual. | ||
| 14 | 182 | ▶ | use lib "$Bin/../lib"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 182 | ▶ | use App::FileSync::Platform; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 182 | ▶ | use App::FileSync::CLI; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 182 | exit App::FileSync::CLI::run_server(@ARGV); | |
| 20 | |||
| 21 | __END__ | ||