aboutsummaryrefslogtreecommitdiff
path: root/update.sh
AgeCommit message (Collapse)Author
2018-03-30Do not `cd' to earlyEinhard Leichtfuß
2018-03-30Split some functionality off update.shEinhard Leichtfuß
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.
2018-03-30Modularise and generaliseEinhard Leichtfuß
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.