Mercurial > mplayer.hg
view tests/refupdate.sh @ 37026:b6ff1451035d
Constrain an item's value to be in the range of 0 to 100.
Add function contrain() and replace checking the bounds by it.
Add it for mouse wheeling, too, where it has been missing so far.
author | ib |
---|---|
date | Thu, 03 Apr 2014 11:30:53 +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