diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-06-15 23:30:05 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-06-15 23:30:05 +0200 |
commit | d831434e95c6a3b33a8af04e630d34f078d26e4f (patch) | |
tree | 93965830662798a4c8674634110eac88bdb3a6ab /bin/redo-ood | |
download | spiewnik-trakt-d831434e95c6a3b33a8af04e630d34f078d26e4f.tar.gz spiewnik-trakt-d831434e95c6a3b33a8af04e630d34f078d26e4f.zip |
Init
Diffstat (limited to 'bin/redo-ood')
-rwxr-xr-x | bin/redo-ood | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bin/redo-ood b/bin/redo-ood new file mode 100755 index 0000000..22f5f43 --- /dev/null +++ b/bin/redo-ood @@ -0,0 +1,30 @@ +#!/bin/sh -eu +# redo-ood – bourne shell implementation of DJB redo +# Copyright © 2014-2021 Nils Dagsson Moskopp (erlehmann) + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. + +# Dieses Programm hat das Ziel, die Medienkompetenz der Leser zu +# steigern. Gelegentlich packe ich sogar einen handfesten Buffer +# Overflow oder eine Format String Vulnerability zwischen die anderen +# Codezeilen und schreibe das auch nicht dran. + +# Prints a list of all redo target files that are out of date. +. "$(which redo-ifchange)" + +IFS=' + ' +for depfile in $(find .redo -name '*.dependencies'); do + file="${depfile%.dependencies}"; file="${file#.redo}" + export REDO_BASE="$(pwd)" + export REDO_DIR="$REDO_BASE/.redo" + export REDO_TARGET='dummy_target' + if ( ! _target_uptodate "$file" || ! _dependencies_uptodate "$file" ); then + if [ -e "$file" ]; then + echo "$file" + fi + fi +done |