Source

frawor / test / gentests-expand-tmpdir.zsh

1
2
3
4
5
6
#!/bin/zsh
() {
    emulate -L zsh
    [[ ${TESTTYPE[-4,-1]} == wine ]] && local -x TMPDIR='T:'
    perl -p -i -e 's/%TMPDIR%/$ENV{"TMPDIR"}/g' *.ok
}