home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
632b6d3
)
Copy bugfixed version of erlehmann's redo script.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 10 Oct 2014 01:35:43 +0000
(
03:35
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 10 Oct 2014 01:35:43 +0000
(
03:35
+0200)
build/redo_scripts/redo-ifchange
patch
|
blob
|
history
diff --git
a/build/redo_scripts/redo-ifchange
b/build/redo_scripts/redo-ifchange
index 58402bd5c7a9f25d0cb8063d5e79f36aedb90b88..5f220a8002ac1b46206046a1fc3de2c30ccff5fe 100755
(executable)
--- a/
build/redo_scripts/redo-ifchange
+++ b/
build/redo_scripts/redo-ifchange
@@
-196,7
+196,9
@@
_do() {
[ -e "$target.do" ] || _find_dofile "$target"
if [ ! -e "$dofile" ]; then
# If .do file does not exist and target exists, it is a source file.
[ -e "$target.do" ] || _find_dofile "$target"
if [ ! -e "$dofile" ]; then
# If .do file does not exist and target exists, it is a source file.
- if [ -e "$target" ]; then
+ if [ -e "$target_abspath" ]; then
+ _add_dependency "$REDO_TARGET" "$target_abspath"
+ _add_ctime_md5sum "$target_abspath"
return 0
# If .do file does not exist and target does not exist, stop.
else
return 0
# If .do file does not exist and target does not exist, stop.
else
@@
-235,7
+237,7
@@
_do() {
"$REDO_DIR/$target_abspath".dependencies_ne >&2
fi
# Some do files (like all.do) do not usually generate output.
"$REDO_DIR/$target_abspath".dependencies_ne >&2
fi
# Some do files (like all.do) do not usually generate output.
- if [ -e "$target" ]; then
+ if [ -e "$target
_abspath
" ]; then
# Record dependency on parent target.
_add_dependency "$REDO_TARGET" "$target_abspath"
_add_ctime_md5sum "$target_abspath"
# Record dependency on parent target.
_add_dependency "$REDO_TARGET" "$target_abspath"
_add_ctime_md5sum "$target_abspath"