view tests/refupdate.sh @ 35963:db72a3183d41

Preselect current playlist directory from last playlist entry. Currently, it's preselected from the first (i.e. most recent) history file entry - which appears quite unrelated. Get the last playlist entry by using new listMgr command PLAYLIST_ITEM_GET_LAST. Fall back to the history file entry if there's no playlist entry. Based on a patch by Hans-Dieter Kosch, hdkosch kabelbw de.
author ib
date Mon, 25 Mar 2013 00:45:32 +0000
parents 6dc79618ec0e
children
line wrap: on
line source

#!/bin/sh
# updates all changed/new results in ref/
find res -name '*.bad' | while read bad_res ; do
  ref_file="ref/${bad_res#res/}"
  ref_file="${ref_file%.bad}"
  mkdir -p "$(dirname "$ref_file")"
  cp "$bad_res" "$ref_file"
done