From d831434e95c6a3b33a8af04e630d34f078d26e4f Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 15 Jun 2021 23:30:05 +0200 Subject: Init --- bin/redo-targets | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 bin/redo-targets (limited to 'bin/redo-targets') diff --git a/bin/redo-targets b/bin/redo-targets new file mode 100755 index 0000000..9ae47ed --- /dev/null +++ b/bin/redo-targets @@ -0,0 +1,25 @@ +#!/bin/sh +# redo-targets – bourne shell implementation of DJB redo +# Copyright © 2014 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 exist. A target file is +# a file that redo can build. + +IFS=' + ' +for depfile in $(find .redo -name '*.dependencies'); do + file="${depfile%.dependencies}"; file="${file#.redo}" + if [ -e "$file" ]; then + echo "$file" + fi +done -- cgit 1.4.1