comparison iReport.sh @ 1:440f4aa3db97 draft

Added option to dowload iReports
author saskia-hiltemann
date Wed, 30 Jul 2014 07:03:43 -0400
parents ac5f9272033b
children e8755431a0cd
comparison
equal deleted inserted replaced
0:ac5f9272033b 1:440f4aa3db97
36 36
37 tabs=${tabs//,/ }; tabs=${tabs/ /} 37 tabs=${tabs//,/ }; tabs=${tabs/ /}
38 items=${items//,/ }; items=${items/ /} 38 items=${items//,/ }; items=${items/ /}
39 title=${title//--/} 39 title=${title//--/}
40 title=${title//label/} 40 title=${title//label/}
41
42 reportname=${title// /}
43
41 echo -e "\n" 44 echo -e "\n"
42 echo -e "title: $title" 45 echo -e "title: $title"
43 echo -e "tabs: $tabs" 46 echo -e "tabs: $tabs"
44 echo -e "items: $items" 47 echo -e "items: $items"
45 echo -e "htmlout: $htmlout" 48 echo -e "htmlout: $htmlout"
66 cp ${repositorypath}/jquery.dataTables.css ${galaxypath}/jquery.dataTables.css 69 cp ${repositorypath}/jquery.dataTables.css ${galaxypath}/jquery.dataTables.css
67 cp ${repositorypath}/jquery.dataTables.js ${galaxypath}/jquery.dataTables.js 70 cp ${repositorypath}/jquery.dataTables.js ${galaxypath}/jquery.dataTables.js
68 cp -R ${repositorypath}/iframe-resizer/ ${galaxypath}/iframe-resizer/ 71 cp -R ${repositorypath}/iframe-resizer/ ${galaxypath}/iframe-resizer/
69 cp -R ${repositorypath}/DataTables-1.9.4/ ${galaxypath}/DataTables-1.9.4/ 72 cp -R ${repositorypath}/DataTables-1.9.4/ ${galaxypath}/DataTables-1.9.4/
70 cp ${repositorypath}/jquery.zoom.js ${galaxypath}/jquery.zoom.js 73 cp ${repositorypath}/jquery.zoom.js ${galaxypath}/jquery.zoom.js
71 74 cp ${repositorypath}/jquery-ui.css ${galaxypath}/jquery-ui.css
75 cp ${repositorypath}/jquery-1.10.2.js ${galaxypath}/jquery-1.10.2.js
76 cp ${repositorypath}/jquery-ui.js ${galaxypath}/jquery-ui.js
72 77
73 echo "done copying resource files" 78 echo "done copying resource files"
74 ls ${galaxypath} 79 ls ${galaxypath}
75 80
76 81
77 ## Create cover HTML page 82 ## Create cover HTML page
78 makeIntroPage "$title" $coverimage "report.html" $htmlout 83 makeIntroPage "$title" $coverimage "report.html" $htmlout iReport_${reportname}.zip
84
85 ## Create copy of cover page for downloadable version
86 makeIntroPage "$title" $coverimage "report.html" coverpage.html iReport_${reportname}.zip
87 cp coverpage.html ${galaxypath}/coverpage.html
79 88
80 ## Create Report page with tabs 89 ## Create Report page with tabs
81 createMainPage ${galaxypath}/report.html "$tabs" "$items" $minwidth 90 createMainPage ${galaxypath}/report.html "$tabs" "$items" $minwidth
82 91
92
93 ## Create zip file of this iReport for download by user
94 wd=`pwd`
95 cd ${galaxypath}
96 zip -r iReport_${reportname} .
97 cd $wd
98