Commit d04269b9 authored by Andreas Schneider's avatar Andreas Schneider

tools: Add darktable prefix to noise tools

parent 07e7ea83
PROGS = noiseprofile PROGS = darktable-noiseprofile
CFLAGS = -g -std=c99 -Wall CFLAGS = -g -std=c99 -Wall
...@@ -7,7 +7,7 @@ all: $(PROGS) ...@@ -7,7 +7,7 @@ all: $(PROGS)
clean: clean:
rm -f $(PROGS) rm -f $(PROGS)
noiseprofile: noiseprofile.c darktable-noiseprofile: noiseprofile.c
$(CC) $(CFLAGS) noiseprofile.c -lm -o $@ $(CC) $(CFLAGS) noiseprofile.c -lm -o $@
.PHONY: all clean .PHONY: all clean
...@@ -123,7 +123,7 @@ profile_image() { ...@@ -123,7 +123,7 @@ profile_image() {
iso=$(get_image_iso "$image") iso=$(get_image_iso "$image")
xmp="$scriptdir/profiling-shot.xmp" xmp="$scriptdir/profiling-shot.xmp"
noiseprofile="$scriptdir/noiseprofile" noiseprofile="$scriptdir/darktable-noiseprofile"
echo echo
echo "===> Profile image for \"$maker - $model - $iso ISO\"" echo "===> Profile image for \"$maker - $model - $iso ISO\""
...@@ -137,7 +137,7 @@ profile_image() { ...@@ -137,7 +137,7 @@ profile_image() {
echo "--> Skip $image (ISO $iso); output up-to-date" echo "--> Skip $image (ISO $iso); output up-to-date"
fi fi
echo "--> Run noiseprofile" echo "--> Run darktable-noiseprofile"
dat="${pfm%.pfm}.dat" dat="${pfm%.pfm}.dat"
"$noiseprofile" "$pfm" > "$dat" "$noiseprofile" "$pfm" > "$dat"
...@@ -509,7 +509,7 @@ fi ...@@ -509,7 +509,7 @@ fi
# Prepare a tarball ready to be sent to the darktable team. # Prepare a tarball ready to be sent to the darktable team.
echo echo
echo "===> Prepare final tarball" echo "===> Prepare final tarball"
tarball="$profiling_dir"/dt-noiseprofile-$(date +'%Y%m%d').tar.gz tarball="$profiling_dir"/darktable-noiseprofile-$(date +'%Y%m%d').tar.gz
cd "$profiling_dir" cd "$profiling_dir"
tar -cf - "$(basename "$presets_json")" $(cat "$(basename "$files_list")") "$(basename "$resultpdf")" | gzip > "$(basename "$tarball")" tar -cf - "$(basename "$presets_json")" $(cat "$(basename "$files_list")") "$(basename "$resultpdf")" | gzip > "$(basename "$tarball")"
cd - cd -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment