Commit Graph

263 Commits

Author SHA1 Message Date
Boris Nagaev 4a7b9526f0 add tools to create and update backup of packages 2017-01-07 05:19:09 +01:00
Boris Nagaev cf8930dde0 skeleton.py: put website and description to .mk
... instead of index.html

See https://github.com/mxe/mxe/issues/1422
2016-12-22 22:28:29 +01:00
Boris Nagaev f06ef1c01b mv docs/versions.json docs/packages.json
See https://github.com/mxe/mxe/issues/1422
2016-12-22 22:25:48 +01:00
Boris Nagaev a0dba601f9 install-deps: install libtool-bin on Debian Sid
See https://github.com/mxe/mxe/issues/1593
2016-12-14 01:02:00 +01:00
Boris Nagaev a3ee6c082c add go to plugins-with-additional-packages.sh 2016-11-19 01:21:19 +03:00
Boris Nagaev c14f15b447 skeleton.py: use shutil.move instead of os.rename
Function os.rename fails if files are in different filesystems,
e.g. if /tmp is mounted as tmpfs.
2016-10-29 01:19:37 +03:00
Boris Nagaev 846b981165 build-pkg: system requirements are recommendations
... not dependencies.

fix #1537
2016-10-12 04:11:40 +03:00
Boris Nagaev 767bf6f3e1 travis: download packages of plugins as well
List of plugins with additional packages was moved from s3-fetch-and-sync
to plugins-with-additional-packages.sh.
2016-09-16 22:53:48 +03:00
Boris Nagaev 185d92c30a travis-push.sh: do not push to gh-pages
See https://github.com/mxe/mxe/pull/1503#issuecomment-241625181
2016-08-27 12:31:30 +03:00
Boris Nagaev 4e8c132550 move CNAME to docs/
See https://github.com/mxe/mxe/issues/1500
2016-08-27 12:31:30 +03:00
Boris Nagaev 8e35c23242 move index.html to docs/
See https://github.com/mxe/mxe/issues/1500
2016-08-27 12:31:30 +03:00
Boris Nagaev cce8094fb0 add missing things
index.html: make docs/build-matrix.html a link
mxe-activate: add versions.json
add .PHONY for build-matrix.html
2016-08-27 12:31:30 +03:00
Boris Nagaev f5567f2c37 mv versions.json build-matrix.html assets docs/
See https://github.com/mxe/mxe/issues/1500
2016-08-27 12:31:30 +03:00
Boris Nagaev d0e424038e rename doc/ to docs/
See https://github.com/mxe/mxe/issues/1500
2016-08-27 12:31:30 +03:00
Boris Nagaev 6adb5ade12 Copyright headers: point to LICENSE.md and shorten
The following script was applied:

    sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')

    sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
        $(git grep -l 'part of MXE.*See index.html')

    before='This file is part of MXE. See index.html for further information.'
    after='This file is part of MXE. See LICENSE.md for licensing information.'
    sed "s/$before/$after/" -i $(git grep -l 'part of MXE')

Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.

See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
2016-08-27 12:31:29 +03:00
Boris Nagaev 1a59d510a6 build-pkg: fix crash if package breaks in 1st pass
fix https://github.com/mxe/mxe/issues/1471
2016-08-03 02:19:43 +03:00
Boris Nagaev 0e45796eeb build-pkg: track all files including gitignored
See https://github.com/mxe/mxe/pull/1443#issuecomment-233181951
2016-07-20 11:37:49 +03:00
Lars Engelhard 4d76a91cd2 tools/copydlldeps: removing exit 0 at the end 2016-07-15 22:50:17 +10:00
Lars 0eda283b50 tools/copydlldeps: introducing excludepattern and whitelist of DLLs 2016-07-15 22:50:09 +10:00
Lars 73ae658c4a tools/copydlldeps: multiCall + case insensitivity 2016-07-15 22:50:00 +10:00
Boris Nagaev 38a5c97d0b skeleton: don't truncate index.html on write error
Write new version to a temporary file and rename it to index.html.
2016-07-12 11:37:22 +03:00
Boris Nagaev f1581d20bf make skeleton.py Python 3 compatible 2016-07-12 11:26:15 +03:00
Boris Nagaev 56ab126366 use $(TEST_FILE) in skeleton.py 2016-07-11 19:24:39 +03:00
Boris Nagaev 50b311964f skeleton: use SOURCE_DIR and BUILD_DIR
and do not mkdir build dir.
2016-07-11 09:32:10 +03:00
Boris Nagaev ff1867021c add tool skeleton.py
This tool creates a skeleton of new MXE package.
2016-07-10 18:41:35 +03:00
Boris Nagaev b328e24458 install-deps: install bc to compare versions 2016-06-29 01:42:19 +03:00
Boris Nagaev 7003fa837b install-deps: fix syntax in condition for libtool
Without external `(` and `)` the condition is evaluated to false
on Debian Jessie.
2016-06-29 01:40:28 +03:00
Boris Nagaev f0d60ac7de install-deps: run apt-get with --yes
Otherwise it will make interactive prompts.
2016-06-29 01:30:31 +03:00
Boris Nagaev 2bafd7b4be add tool install-deps 2016-06-13 17:01:47 +03:00
Boris Nagaev fba599d2d7 build-pkg: add env. var to change targets
MXE_BUILD_PKG_TARGETS
2016-06-11 21:54:26 +03:00
Boris Nagaev 4d43e1fe47 build-pkg: prefix evn. vars with "MXE_BUILD_PKG"
to distinguish them from environment variables of MXE itself.
2016-06-11 21:51:45 +03:00
Boris Nagaev 3ee3445f90 build-pkg: limit number of retries of downloading
fix #1308
2016-05-02 14:16:07 +03:00
Boris Nagaev c5c610b085 build-pkg, second pass: fix fail on broken package
If a package is found to be broken on the first pass, then
prev_files = nil, because this structure is filled only
for non-broken packages.

See https://github.com/mxe/mxe/pull/1243#issuecomment-211137555
2016-04-20 23:35:13 +03:00
Boris Nagaev 9da2e477d3 build-pkg: provide more info about removed files 2016-04-20 23:35:13 +03:00
Boris Nagaev 6784792540 build-pkg: detect broken symlink and removed file 2016-04-20 23:35:13 +03:00
Boris Nagaev ea511c193c build-pkg: use "git add" with --all
From the warning produced by "git add ." after removing a file with "rm":

> warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal',
> whose behaviour will change in Git 2.0 with respect to paths you removed.
> Paths like 'foo.txt' that are
> removed from your working tree are ignored with this version of Git.
>
> * 'git add --ignore-removal <pathspec>', which is the current default,
>   ignores paths you removed from your working tree.
>
> * 'git add --all <pathspec>' will let you also record the removals.
>
> Run 'git status' to check the paths you removed from your working tree.

$ git status --porcelain
 D foo.txt

$ git add --all .

$ git status --porcelain
D  foo.txt

$ git --version
git version 1.9.1
2016-04-20 23:35:13 +03:00
Boris Nagaev 732169d86a build-pkg: exit with non-zero if second pass fails 2016-04-20 23:35:13 +03:00
Boris Nagaev f3de04c954 build-pkg: provide a way to disable second pass 2016-04-20 23:35:13 +03:00
Boris Nagaev aa4744cea4 build-pkg: add second pass
The second pass is done after the first one. During the second pass,
an item is built in tree of files from all other items. It checks that:

  * packages can be built in any order satisfying dependencies;
  * a package can be rebuilt after its dependee.

For both cases, not only build status is checked but also two sets of
files are compared. Currently content of files is not checked, only
their existance in both passes.

See #1111
2016-04-20 23:35:13 +03:00
Boris Nagaev d25a31bd21 build-pkg: move function isBuilt()
It will be used in buildItem()
2016-04-20 23:35:13 +03:00
Boris Nagaev 1856ae5f8a build-pkg, buildItem(): log pass (first, second) 2016-04-20 23:35:13 +03:00
Boris Nagaev 07a0103247 build-pkg: provide a way to mute removeEmptyDirs() 2016-04-20 23:35:13 +03:00
Boris Nagaev 3f47774f1c build-pkg: add argument pass=first to build funcs 2016-04-20 23:35:13 +03:00
Boris Nagaev 1a1c1ebf00 build-pkg: move top-level code to main() function 2016-04-20 23:35:13 +03:00
Boris Nagaev 4d73354c64 nonetwork: new line before the message and flush
fflush(stderr) may be needed:
http://mailman.linuxchix.org/pipermail/courses/2002-August/000691.html
2016-03-26 14:17:36 +03:00
Tony Theodore 3445107583 Merge pull request #1270 from LuaAndC/nonetwork-print-message
nonetwork: print message from replaced functions
2016-03-22 11:19:20 +11:00
Boris Nagaev 2dd817b395 nonetwork: print message from replaced functions
See https://github.com/mxe/mxe/issues/1269
2016-03-21 01:11:38 +03:00
Pavel Vatagin 2db02c1318 copydlldeps.sh: fix #1226 (case insensitive) 2016-03-21 00:25:04 +03:00
Boris Nagaev ebd54246cf Update copydlldeps.md 2016-02-10 18:57:35 +03:00
dl5rcw 46e6911edc markdown with code blocks
just noticed md + code blocks need these
2016-02-10 09:35:51 +01:00