~eda-qa/dhlib/main

« back to all changes in this revision

Viewing changes to create_swfindex.sh

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
b'\\ No newline at end of file'