1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Olof Johansson
fac120c692 make: pylint --report=no should be --reports=no
According to pylint's changelog, --reports has been the officially
documented flag since its introduction, but until recently, --report
also seems to have worked. This has now changed.
2016-03-08 20:32:29 +01:00
Olof Johansson
a6d8e537d1 make: add missing echo, affects builds without git
Command used to generate the VERSION string from git had a missing echo, so
would try to execute $(LATEST_RELEASE)-unknown instead of assigning it as a
value.
2015-11-23 23:48:40 +01:00
Olof Johansson
1a7a9f5662 Add git version info to version string
When building from git, it can be useful to know which version
a user has at commit level resolution. When building in a git
repository, use git describe to generate a version string. If
HEAD matches a tag, use that. Examples:

    $ ./svtplay-dl --version
    0.20.2015.10.08-3-gbd75a67

    $ git tag -a 0.20.2015.10.18
    $ make
    ...
    $ ./svtplay-dl --version
    0.20.2015.10.18

make release is also adjusted, so that it overrides the version
value when building, so that official releases still only has the
tag.
2015-10-18 19:50:53 +02:00
Olof Johansson
56274ec64e build: Avoid using non-portable install -D
The following error was reported when trying to build on OSX:

 install: illegal option -- D

We now instead create the directories in a first, and copy in a second
step.
2015-07-26 12:48:23 +02:00
Olof Johansson
352fd90e51 build: Truncate timestamps in zip archive
Even though zip's -X flag suggests that it removes timestamps, that's not
quite true. There's still modification times per file, and that introduces
non-determinism that are hard to notice, since the mtimes are unlikely to
change without changes to the files. Only when doing a new clone/unpacking
a tar ball under some circumstances or similar action that resets/discards
the mtimes, we would notice.

So, the -X is not enough, and from what I can tell, there's no way of
telling zip to not include timestamps (or truncate them). With this
change, we stage all files in a temporary .build directory, and set the
mtime manually to the beginning of time (as is the case for zip files:
1980-01-01T00:00). These timestamps should not be important to anyone,
since they are all presented to the user as a blob.

The rationale for this change is that this makes it possible to build
svtplay-dl reproducibly. And it also removes the pesky svtplay-dl diffs
just from regenerating the executable.
2015-05-30 13:58:30 +02:00
Olof Johansson
87ae56caca Make build reproducible
This change makes zip drop any additional metadata about the file, like access
time. Without this change, you'd get different md5sums every time you build
svtplay-dl --- even though you use the exact same sources.

Credit to the people behind http://reproducible.debian.net/ for inspiration! :)
2015-02-13 23:33:52 +01:00
Johan Andersson
49c2ec070d Makefile: move pylint to lib/Makefile 2014-12-26 02:11:19 +01:00
Johan Andersson
0b230d66b6 Makefile: Add subtitle to PACKAGES.
This fixes #104
2014-06-14 14:38:21 +02:00
Olof Johansson
d4b03b53af make: Make shebang line overrideable 2014-02-05 18:52:31 +01:00
Johan Andersson
24462e6545 bsd find need a path before expression 2013-08-10 20:50:52 +02:00
Olof Johansson
7f99c30b31 Remove unused make stuff in lib/Makefile
Doing `make install` with lib/Makefile is not supported.
2013-05-27 20:47:51 +02:00
Olof Johansson
5fb13353f2 make: recurse make clean and remove *.pyc 2013-05-15 18:39:43 +02:00
Olof Johansson
23ed1b840b Restructure makefiles
This change makes it easier to add new packages; it's only necessary
to update the sub makefile (lib/Makefile) and add new packaes to the
PACKAGES variable.
2013-04-21 14:10:30 +02:00
Johan Andersson
fb6d2a2b8a Making svtplay-dl works again. 2013-03-23 16:30:19 +01:00