Commit graph

135 commits

Author SHA1 Message Date
Jo-Philipp Wich
6f47c5657f build: add check-controller.sh, a utility to test controller files
The main purpose of the script is to check if the module declaration
matches and if associated cbi resources are properly referenced.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-06 12:02:37 +02:00
Hannu Nyman
f8eee09f55 build/zoneinfo2lua.pl: logic for Etc/GMT timezones
Add logic to add Etc/GMT timezones (like GMT+5)
although the zones are not included in zone.tab

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-08 19:29:43 +03:00
Stefan Weil
cd43e35b9d build/luadoc: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-03-26 10:20:46 +01:00
Jo-Philipp Wich
6c72dec7e5 build/makedocs.sh: handle relative output directories
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-09-02 09:39:24 +02:00
Jo-Philipp Wich
5fd8761583 build: rework i18n-sync.sh to support new structure
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-04-20 10:17:23 +02:00
Hannu Nyman
cdb9de9a9d 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>
2015-02-04 19:16:46 +02:00
Jo-Philipp Wich
c669c01cea build: add modified luadoc for use with LuCI sources
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 22:28:04 +01:00
Jo-Philipp Wich
b348413fb2 build: remove remainders of old build system
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:52:51 +01:00
Jo-Philipp Wich
eb25d532a8 build: adapt zoneinfo2lua.pl to new structure
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:51:47 +01:00
Jo-Philipp Wich
fe9ef86750 build: adapt i18n-update.pl to new structure
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:46:58 +01:00
Jo-Philipp Wich
85e4256a7a build: adapt mkbasepot.sh to new structure
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:40:09 +01:00
Jo-Philipp Wich
1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00
Jo-Philipp Wich
212d7be533 build: rewrite mkversion.sh to use git metadata (#239)
The current build/mkversion.sh still expected an SVN repository layout,
rewrite it to derive tags and branchnames from git metadata.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-11-01 09:53:02 +01:00
Jo-Philipp Wich
0856030c79 build: generate strictly increasing git revisions (#225)
Instead of simply emitting a "git-$hash" revision, take the commit time into
account to generate strictly increasing revisions to preserve opkg upgrade
capabilities.

The format is "git-YY.DDD.SSSSS-HHHHHHH" with the following defined fields:

  - YY        year number (00..99)
  - DDD       day of year (001..366)
  - SSSSSS    second of day (00000..86399)
  - HHHHHHH   abbreviated git commit hash

An example revision is "git-14.283.50202-bb388f0".

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-14 13:51:37 +02:00
Jo-Philipp Wich
91ac51d693 build: preserve original .po header when updating from templates to reduce diff noise
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-13 09:40:43 +00:00
Jo-Philipp Wich
d733688ce5 build: adjust mkbasepot.sh after modules/base merge
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-13 09:40:40 +00:00
Jo-Philipp Wich
cf99c53a74 build: add mkrevision.sh helper script which properly infers the revision from either svn, git-svn or git work copies 2013-03-25 11:05:34 +00:00
Jo-Philipp Wich
ffec6bd451 build: remove two obsolete scripts 2012-12-18 14:20:10 +00:00
Daniel Golle
8da6c1a49f properly support git in build/i18n-init.sh 2012-11-20 11:42:35 +00:00
Jo-Philipp Wich
30a0e92e22 build: i18n-sync.sh: also recreate base.pot 2012-07-01 22:58:17 +00:00
Jo-Philipp Wich
0b0df324bf build: fixup header order in i18n-update.pl to minimize diffs to pootle 2012-07-01 22:46:49 +00:00
Jo-Philipp Wich
3944cdaac4 build: add i18n-sync.sh, a script to automatically sync most translations 2012-06-27 18:02:50 +00:00
Jo-Philipp Wich
c60254089d build: escape backslashes in i18n strings 2012-04-22 14:29:00 +00:00
Jo-Philipp Wich
0231c25655 build/i18n-init.sh: add git support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2012-04-06 09:44:46 +00:00
Jo-Philipp Wich
ec79d9318d build/i18n-init.sh: allow to use custom pattern for template files
This allows to initialize language files for individual modules.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2012-04-06 09:44:43 +00:00
Jo-Philipp Wich
3501cbea52 build: rework checks in i18n-scan.pl 2012-04-03 00:35:54 +00:00
Jo-Philipp Wich
c024eca0fc build: rework i18n-scan.pl defined checks 2012-04-02 23:57:11 +00:00
Jo-Philipp Wich
14a9306e7d build/i18n-scan.pl: avoid a possible endless loop
Issuing './build/i18n-scan.pl libs/core/' leads to this
endless loop with some perl implementations:

<...>
Use of uninitialized value in concatenation (.) or string at../build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
Use of uninitialized value in concatenation (.) or string at ./build/i18n-scan.pl line 69.
substr outside of string at ./build/i18n-scan.pl line 69.
<...>

Experienced with this perl version:
"This is perl, v5.8.8 built for i386-linux"

Fix it by undefining the 'sub' variable if it is an
empty string.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2012-04-02 22:50:40 +00:00
Jo-Philipp Wich
5dd25cf43e build: override sys.user.getpasswd and nixio.fs.access in sdk environment 2012-03-13 23:18:13 +00:00
Jo-Philipp Wich
5e86b77294 build: i18n-scan.pl: cope with strings that contain escaped newlines, spotted in luci-pbx 2011-11-05 18:35:54 +00:00
Jo-Philipp Wich
fa9c8e72e8 build: mkbasepot.sh: scan protocols/ as well 2011-10-27 00:46:29 +00:00
Jo-Philipp Wich
158f709af3 build: Bail out the build if any lua compilation fails. (Patch from Fon-NG, http://trac.fonosfera.org/fon-ng/changeset/1867) 2011-09-03 17:07:38 +00:00
Jo-Philipp Wich
7d73e79c49 build: add i18n-init.sh, a helper script to initalize missing *.po files 2011-05-21 21:22:47 +00:00
Jo-Philipp Wich
9424177aca build: uvl is dead, remove it 2011-05-04 21:09:04 +00:00
Manuel Munz
32aec7a4f3 modules/freifunk: Set uhttpd.main.rfc1918_filter=0 via uci-defaults/freifunk to allow connections from rfc1918 ip space to public ips 2011-03-03 21:01:17 +00:00
Jo-Philipp Wich
45367dab20 build: fix bashism in hostenv.sh 2011-02-16 19:57:39 +00:00
Jo-Philipp Wich
01ad52f27a build: better not use a local var, it breaks various shells 2011-01-26 19:12:51 +00:00
Jo-Philipp Wich
e20ac8fed4 build: set LUA_PATH when invoking LuaSrcDiet 2011-01-23 02:04:55 +00:00
Jo-Philipp Wich
db7d37f0af build: use maximum compression for LuaSrcDiet 2011-01-23 01:55:12 +00:00
Jo-Philipp Wich
03ad47080c contrib, build: bundle LuaSrcDiet and make it available in build targets 2011-01-23 01:49:54 +00:00
Jo-Philipp Wich
9714667b2a build: readd both po2lua and lua2po helper scripts... 2011-01-18 20:51:24 +00:00
Jo-Philipp Wich
c78c91b9a9 build: partly revert r6748 2011-01-18 20:47:18 +00:00
Jo-Philipp Wich
72309b798e build: restore i18n-lua2po.pl and remove i18n-po2lua.pl 2011-01-18 19:10:50 +00:00
Jo-Philipp Wich
4ab2d1017e build: fix some errors in i18n-scan.pl, support bracketed Lua string notation 2011-01-14 23:23:37 +00:00
Jo-Philipp Wich
939218ae82 build: properly handle i18n tags with whitespace strip tokens in i18n-scan.pl 2011-01-14 22:51:21 +00:00
Jo-Philipp Wich
9ab82c3446 build: remove uvl setup from sdk preloading 2011-01-13 22:29:01 +00:00
Jo-Philipp Wich
6e59e510dd build: add mkbasepot.sh, convenience script to rebuild base.pot (it sources multiple project parts) 2011-01-13 21:48:38 +00:00
Jo-Philipp Wich
800a263049 build: remove some obsolete support scripts 2011-01-02 19:20:23 +00:00
Jo-Philipp Wich
9fd0276848 build: zoneinfo2lua.pl: rework script to accommodate split tzdata.lua and tzoffset.lua libs 2011-01-02 17:52:06 +00:00
Jo-Philipp Wich
c8bac06623 build: make zoneinfo2lua.pl script more convenient 2011-01-02 17:29:19 +00:00