Source

aurum / test / gentests-expand-tmpdir.zsh

1
2
3
4
5
6
7
#!/bin/zsh
() {
    emulate -L zsh
    (( ISWINE )) && local -x TMPDIR='T:'
    local -x ETMPDIR=${${TMPDIR//\//%-}//:/%.}
    perl -p -i -e 's/%(E?TMPDIR)%/$ENV{$1}/g' *.ok
}