1
by edA-qa mort-ora-y
first |
1 |
#!/bin/bash
|
2 |
#
|
|
3 |
# Creates an index for all SWF Test files, for easy checking in a web browser, or elsewhere
|
|
4 |
# TODO: a combo SWF loader would be good so they could be checked in the debug player...
|
|
5 |
||
6 |
out=swftestleft.html |
|
7 |
echo "<html><head><title>dis-Emi-A HaXe API SWF Tests</title></head><body>" > $out |
|
8 |
||
9 |
ttests=`ls ./app-tutorial/*.swf` |
|
10 |
atests=`find . -name "*Test*.swf"` |
|
11 |
# assume first letter capital is a test
|
|
12 |
apps=`find . -name "[A-Z]*.swf"` |
|
13 |
||
14 |
all=`echo $ttests $atests $apps | sort | uniq` |
|
15 |
for test in $all; do |
|
16 |
echo "<a href='$test' target='testframe'>`basename $test`</a>" >> $out |
|
17 |
done
|
|
18 |
echo "</body>" >> $out |