Description: Avoid error messages when opening a new tomb Make sure control file exists and has user ownership before user writes to it. Author: Sven Geuer Bug: https://github.com/dyne/Tomb/issues/369 Last-Update: 2019-11-04 --- a/tomb +++ b/tomb @@ -2197,14 +2197,15 @@ # {{{ Open _update_control_file() { - # replaces a control file with new contents and gives it user ownership + # make sure a control file exists, gives it user ownership + # and replaces it with new contents # stdin = contents # $1 = path to control file # $2 = contents [[ "$2" = "" ]] && return 1 _sudo touch "$1" - print "$2" > "$1" _sudo chown ${_UID}:${_GID} "$1" + print "$2" > "$1" _verbose "updated control file $1 = $2" } szko' selected='selected'>koszko Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/build-aux/compile-all.scm
AgeCommit message (Expand)Author
2021-06-23build: Makefile splits Scheme compilation in four steps....Fixes <https://bugs.gnu.org/48963>. Reported by Julien Lepiller <julien@lepiller.eu>. This reduces peak memory consumption to something less unreasonable. * Makefile.am (make-go): Depend on 'make-*-go' targets; remove body. (guile-compilation-rule): New function. (MODULES_CORE, MODULES_PACKAGES, MODULES_SYSTEM, MODULES_CLI): New variables. <top level>: Call 'guile-compilation-rule' 4 times. * build-aux/compile-all.scm <top level>: Expect "--total" and "--processed". Take them into account when displaying progress reports. Ludovic Courtès
2021-06-18build: Remove Guile 2.2 workaround....* build-aux/compile-all.scm <top level>: Remove Guile 2.2 workaround. Ludovic Courtès