Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/scripts/update-leap/update-leap-opts
# EDIT THIS FILE WITH CAUTION (update-leap-opts) | # EDIT THIS FILE WITH CAUTION (update-leap-opts) | ||||
# | # | ||||
# It has been AutoGen-ed October 21, 2015 at 12:34:44 PM by AutoGen 5.18.5 | # It has been AutoGen-ed January 7, 2016 at 11:27:11 PM by AutoGen 5.18.5 | ||||
# From the definitions update-leap-opts.def | # From the definitions update-leap-opts.def | ||||
# and the template file perlopt | # and the template file perlopt | ||||
use Getopt::Long qw(GetOptionsFromArray); | use Getopt::Long qw(GetOptionsFromArray); | ||||
Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always)); | Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always)); | ||||
my $usage; | my $usage; | ||||
Show All 29 Lines | sub processOptions { | ||||
my $argument = ''; | my $argument = ''; | ||||
my $ret = GetOptionsFromArray($args, $opts, ( | my $ret = GetOptionsFromArray($args, $opts, ( | ||||
'source-url|s=s', 'ipv4|4', 'destination|d=f', | 'source-url|s=s', 'ipv4|4', 'destination|d=f', | ||||
'expiration|e=s', 'ntp-conf-file|f=s', 'force-update|F', | 'expiration|e=s', 'ntp-conf-file|f=s', 'force-update|F', | ||||
'dont-wait', | 'dont-wait', | ||||
'help|?', 'more-help')); | 'help|?', 'more-help')); | ||||
$usage = <<'USAGE'; | $usage = <<'USAGE'; | ||||
update-leap - leap-seconds file manager/updater - Ver. 4.2.8p4 | update-leap - leap-seconds file manager/updater - Ver. 4.2.8p5 | ||||
USAGE: update-leap [ -<flag> [<val>] | --<name>[{=| }<val>] ]... | USAGE: update-leap [ -<flag> [<val>] | --<name>[{=| }<val>] ]... | ||||
-s, --source-url=str The URL of the master copy of the leapseconds file | -s, --source-url=str The URL of the master copy of the leapseconds file | ||||
-4, --ipv4 Use only IPv4 addresses for DNS name resolution | -4, --ipv4 Use only IPv4 addresses for DNS name resolution | ||||
-d, --destination=float Filename on the local system | -d, --destination=float Filename on the local system | ||||
-e, --expiration=str Refresh the leapfile this long before it expires | -e, --expiration=str Refresh the leapfile this long before it expires | ||||
-f, --ntp-conf-file=str Location of the ntp.conf file | -f, --ntp-conf-file=str Location of the ntp.conf file | ||||
-F, --force-update Force update of the leapfile | -F, --force-update Force update of the leapfile | ||||
Show All 15 Lines |