Chris@51
|
1
|
Chris@51
|
2 Set-StrictMode -Version 2.0
|
Chris@51
|
3 $ErrorActionPreference = "Stop"
|
Chris@51
|
4
|
Chris@51
|
5 mkdir -f out
|
Chris@51
|
6
|
Chris@51
|
7 dir -Attributes Directory | foreach {
|
Chris@51
|
8
|
Chris@51
|
9 $dir = $_.BaseName
|
Chris@51
|
10 $lib = $dir
|
Chris@51
|
11
|
Chris@51
|
12 if ($dir -eq "constant-q-cpp") { $lib = "cqvamp" }
|
Chris@51
|
13 if ($dir -eq "marsyas") { $lib = "mvamp" }
|
Chris@51
|
14 if ($dir -eq "match-vamp") { $lib = "match-vamp-plugin" }
|
Chris@51
|
15 if ($dir -eq "vamp-aubio-plugins") { $lib = "vamp-aubio" }
|
Chris@51
|
16 if ($dir -eq "vamp-libxtract-plugins") { $lib = "vamp-libxtract" }
|
Chris@51
|
17 if ($dir -eq "vamp-plugin-sdk") { $lib = "vamp-example-plugins" }
|
Chris@51
|
18 if ($dir -eq "vamp-fanchirp") { $lib = "fanchirp" }
|
Chris@51
|
19 if ($dir -eq "vamp-tempogram") { $lib = "tempogram" }
|
Chris@51
|
20 if ($dir -eq "vamp-simple-cepstrum") { $lib = "simple-cepstrum" }
|
Chris@51
|
21
|
Chris@51
|
22 ( "cat", "n3" ) | foreach {
|
Chris@51
|
23
|
Chris@51
|
24 if (Test-Path -Path $dir/$lib.$_ -PathType Leaf) {
|
Chris@51
|
25 cp $dir/$lib.$_ out/
|
Chris@51
|
26 }
|
Chris@51
|
27 }
|
Chris@51
|
28
|
Chris@51
|
29 ( "README", "COPYING", "CITATION" ) | foreach {
|
Chris@51
|
30
|
Chris@51
|
31 if (Test-Path -Path $dir/$_.md -PathType Leaf) {
|
Chris@51
|
32 cp $dir/$_.md out/${lib}_$_.md
|
Chris@51
|
33 } elseif (Test-Path -Path $dir/$_.txt -PathType Leaf) {
|
Chris@51
|
34 cp $dir/$_.txt out/${lib}_$_.txt
|
Chris@51
|
35 } elseif (Test-Path -Path $dir/$_ -PathType Leaf) {
|
Chris@51
|
36 cp $dir/$_ out/${lib}_$_.txt
|
Chris@51
|
37 }
|
Chris@51
|
38 }
|
Chris@51
|
39 }
|
Chris@51
|
40
|
Chris@51
|
41 # oddments
|
Chris@51
|
42
|
Chris@51
|
43 cp marsyas/src/mvamp/mvamp.n3 out/
|
Chris@51
|
44 cp marsyas/src/mvamp/mvamp.cat out/
|
Chris@51
|
45
|
Chris@51
|
46 cp vamp-plugin-sdk/examples/vamp-example-plugins.n3 out/
|
Chris@51
|
47 cp vamp-plugin-sdk/examples/vamp-example-plugins.cat out/
|
Chris@51
|
48
|
Chris@51
|
49 cp ua-vamp-plugins/LICENSE out/ua-vamp-plugins_COPYING.txt
|
Chris@51
|
50
|
Chris@51
|
51 del out/vamp-example-plugins_README.txt # it's about the SDK not the plugins
|