zoneinfo2lua.pl to generate shorter copyright messages
Change zoneinfo2lua.pl to generate the short copyright messages
that have been there since 7a3493b1f7
Also change the advice on line 3 about directory, where this script
should be run.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
84346cd178
commit
cdb9de9a9d
1 changed files with 3 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# zoneinfo2lua.pl - Make Lua module from /usr/share/zoneinfo
|
# zoneinfo2lua.pl - Make Lua module from /usr/share/zoneinfo
|
||||||
# Execute from within /usr/share/zoneinfo
|
# Execute from within root of Luci feed, usually feeds/luci
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
@ -51,16 +51,7 @@ open(O, "> $tzdout/tzdata.lua") || die "open($tzdout/tzdata.lua): $!\n";
|
||||||
|
|
||||||
print STDERR "Writing time zones to $tzdout/tzdata.lua ... ";
|
print STDERR "Writing time zones to $tzdout/tzdata.lua ... ";
|
||||||
print O <<HEAD;
|
print O <<HEAD;
|
||||||
--[[
|
-- Licensed to the public under the Apache License 2.0.
|
||||||
LuCI - Autogenerated Zoneinfo Module
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
]]--
|
|
||||||
|
|
||||||
module "luci.sys.zoneinfo.tzdata"
|
module "luci.sys.zoneinfo.tzdata"
|
||||||
|
|
||||||
|
@ -81,16 +72,7 @@ open (O, "> $tzdout/tzoffset.lua") || die "open($tzdout/tzoffset.lua): $!\n";
|
||||||
|
|
||||||
print STDERR "Writing time offsets to $tzdout/tzoffset.lua ... ";
|
print STDERR "Writing time offsets to $tzdout/tzoffset.lua ... ";
|
||||||
print O <<HEAD;
|
print O <<HEAD;
|
||||||
--[[
|
-- Licensed to the public under the Apache License 2.0.
|
||||||
LuCI - Autogenerated Zoneinfo Module
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
]]--
|
|
||||||
|
|
||||||
module "luci.sys.zoneinfo.tzoffset"
|
module "luci.sys.zoneinfo.tzoffset"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue