diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-09-10 08:55:14 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-09-10 08:55:14 (GMT) |
commit | 53baed5d87ad3850709e5e1a7334df6f4d136f16 (patch) | |
tree | 9309b5e30f6249aa607adc7e4fbb382a8338b785 /tools/build-pkg.lua | |
parent | 7124ea1c8cbef16e9acceb1a1948e8e725aa31a5 (diff) | |
download | mxe-53baed5d87ad3850709e5e1a7334df6f4d136f16.zip mxe-53baed5d87ad3850709e5e1a7334df6f4d136f16.tar.gz mxe-53baed5d87ad3850709e5e1a7334df6f4d136f16.tar.bz2 |
build-pkg: add env. var. MXE_DIR
Diffstat (limited to 'tools/build-pkg.lua')
-rwxr-xr-x | tools/build-pkg.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index fd9aadb..3d62b0d 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -11,6 +11,11 @@ -- Packages are written to `*.tar.xz` files. -- Debian packages are written to `*.deb` files. +-- Build in directory /usr/lib/mxe +-- This directory can not be changed in .deb packages +-- To change this directory, set environment variable +-- MXE_DIR to other directory. + -- To prevent build-pkg from creating deb packages, -- set environment variable MXE_NO_DEBS to 1 -- In this case fakeroot and dpkg-deb are not needed. @@ -23,7 +28,7 @@ local no_debs = os.getenv('MXE_NO_DEBS') local ARCH = 'amd64' -local MXE_DIR = '/usr/lib/mxe' +local MXE_DIR = os.getenv('MXE_DIR') or '/usr/lib/mxe' local GIT = 'git --work-tree=./usr/ --git-dir=./usr/.git ' |