The previous Makefile is doing "cp *" and hence installing uninteresting
files like the Makefile itself.
Copy only the application-relevant files, and switch to using install
for some of this where we can automatically create parent directories
if required, solving issues when installing into an empty root.
locale installation is optional; as before, locale files will be
installed if they are present, but installation can also proceed
without them.
By default the Makefile installs data into /usr/share (with default prefix
/usr) but the binary is installed into /usr/local/bin (as if the prefix
were /usr/local).
Improve consistency by dropping "local" from the binary path. If the
user wants to install into /usr/local he/she can do PREFIX=/usr/local
Currently the Makefile lets you choose your own PREFIX, but
the installed runanki.system always hardcodes the prefix as /usr.
Fix runanki.system at install time to install into the designated
PREFIX.
APFS is normalization-preserving, which results in spurious changes
being detected if we assume we'll receive NFD from file listings
this needs to be ported to 2.0.x as well
Using bazaar I get this advice :
```
$ bzr clone lp:anki i18n
The command 'bzr clone' has been deprecated in bzr 2.4. Please use 'bzr branch' instead.
$ bzr --version
Bazaar (bzr) 2.8.0dev1
Python interpreter: /usr/bin/python 2.7.13
Python standard library: /usr/lib/python2.7
Platform: Linux-4.9.0-5-amd64-x86_64-with-debian-9.3
bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
```
When studying, the learning count now indicates the number of
learning cards due within the learn ahead limit, instead of the total
number of learning steps required to complete that day.
Also fix the ineffective limit clauses in the learning counts.
To avoid all sorts of problems, we need to ensure cards scheduled with
the V2 scheduler are not studied in older clients. Unfortunately we
can't just bump the file's schema version, as the existing clients will
freely import files created with newer versions. This patch changes
that, so things should be a bit easier in the future.
In the mean time, we need a way to prevent older clients from importing
files created with the V2 scheduler. To do this, we switch to using a
'collection.anki21' file in the archive, and include a dummy collection
.anki2 file.
The code has been tested with both deck and collection packages, but
exporting deck packages w/ scheduling info will remain disabled until
the V2 scheduler has had more testing.