Age | Commit message (Collapse) | Author |
|
|
|
freedict-tools now (correctly) depend on dictd.
Also,
* do not hide curl's errors.
|
|
Now, other people than myself might be maintainer.
Also, add `| exit 1' to the sourcing of scripts.
Furthermore, add note to the scripts in the sample.* files.
|
|
Therefore, separate types of dictionaries in the configuration sections.
Reason: The dictionaries imported from wikdict are differently licensed.
|
|
|
|
Do not longer rely on them being symlinked to the target directories.
Also, fix small error in make_install.sh:main() ($1 -> $2).
And add some comments.
|
|
- Add input and write to basic.sh to no longer need to know "$tmp" in
the calling scripts.
Also,
- make runnable from outside the directory containing the scripts,
- simplify chained grep and sed commands.
|
|
|
|
EREs: extended regular expressions in contrast to basic regular
expressions (BREs).
|
|
e.g. 1060 -> 10^60 if suggested by context
|
|
|
|
Since getting the checksum now does no longer take a considerable amount
of time, put it in the ordinary handle_all() function.
Also, remove repetitive clutter in the lines getting the information
from the json file.
|
|
Before, the source file was downloaded and the checksum calculated from
it.
Additionally, the code's documentation was marginally improved and a
--nopull option added.
|
|
|
|
|
|
Therefore, use $vcs_langs instead of $langs, due to fra-deu and deu-fra
missing in the vcs tree.
Furthermore, in
- svn/sample.PKGBUILD,
`- change the default pkgrel to 2, since any update is forced, i.e.
there is no version change asking for update;
- update.sh,
`- add a usage note,
`- require a specific type (e.g. src) to be supplied,
`- remove the need to specify $ext for -u,
`- set up a handle_all_vcs() function specifically for VCS sources,
i.e. svn,
`- move the download of freedict-database.json to handle_all().
|
|
Furthermore:
- Move $langs[] to basic.sh in order to be able to use it in make_install.
- Add -f to rm in cleanup() in order to prevent unforeseen errors, that
don't matter.
|
|
|
|
Such that it may be used by the to be bettered make_install.sh.
In particular, the latter is supposed to work for both non-vcs source
and binary packages.
Also add a main() method to update.sh.
|
|
Modularisation:
- Use new functions replace(), replace_line() and delete_line() instead
of sed directly.
This required all editing to be done in-line or pseudo in-line, i.e.
moving files afterwards.
Generalisation:
- Make it work for both the non-vcs source and the binary packages, not
only the former.
A separate function handle_all() has been set up to handle both types.
Further:
- Require a directory to be supplied as argument due to a variable
number of further arguments.
- Use a temporary directory instead of several files.
- Add option -uaf to forcibly update everything.
|