fixed tools/prepare_data to also perform the conversion if the
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 21 Jan 2018 04:32:02 +0000 (06:32 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 21 Jan 2018 04:32:02 +0000 (06:32 +0200)
destination file is missing

tools/prepare_data

index 7106581..a7f1eb4 100755 (executable)
@@ -63,7 +63,7 @@ while read line; do
                        touch "$infile"
                fi
 
-               if [ "$infile" -nt "$outfile" ]; then
+               if [ \( ! -f "$outfile" \) -o \( "$infile" -nt "$outfile" \) ]; then
                        if [ "$op" = nop ]; then
                                echo copying $fname
                                mkdir -p $outdir/$(dirname $path)