@node News
@unnumbered News
+@anchor{Release 1_14_0}
+@section Release 1.14.0
+@itemize
+@item
+ Fixed @command{redo-ifcreate}'s targets proper relative paths to the target.
+@end itemize
+
@anchor{Release 1_13_0}
@section Release 1.13.0
@itemize
log.Fatalln("no", EnvDepFd)
}
for _, tgt := range tgts {
- err = ifcreate(fdDep, tgt)
+ tgtRel, err := filepath.Rel(
+ filepath.Join(Cwd, DirPrefix),
+ filepath.Join(Cwd, tgt),
+ )
+ if err != nil {
+ break
+ }
+ err = ifcreate(fdDep, tgtRel)
if err != nil {
break
}
--- /dev/null
+#!/bin/sh
+
+testname=`basename "$0"`
+test_description="Proper relative to DirPrefix ifcreate paths"
+. $SHARNESS_TEST_SRCDIR/sharness.sh
+export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
+
+mkdir -p a/b/c a/c
+echo whatever > a/b/c/dep
+cat > a/b/default.do <<EOF
+echo called \$1
+redo-ifcreate ../c/dep
+redo-ifchange c/dep
+EOF
+export REDO_NO_PROGRESS=1
+redo-ifchange a/b/c/file
+stat1=`stat a/b/c/file`
+redo-ifchange a/b/c/file
+stat2=`stat a/b/c/file`
+
+test_expect_success "file stays same" '[ "$stat1" = "$stat2" ]'
+
+touch a/c/dep
+redo-ifchange a/b/c/file
+stat3=`stat a/b/c/file`
+
+test_expect_success "ifcreate target works" '[ "$stat1" != "$stat3" ]'
+
+test_done
)
const (
- Version = "1.13.0"
+ Version = "1.14.0"
Warranty = `Copyright (C) 2020-2021 Sergey Matveev
This program is free software: you can redistribute it and/or modify