Mercurial > repos > saskia-hiltemann > ireport_devel
comparison iReport.sh @ 1:d582e2cd3e13 draft
Uploaded
author | saskia-hiltemann |
---|---|
date | Wed, 15 Jul 2015 08:52:21 -0400 |
parents | 3c160414da2e |
children |
comparison
equal
deleted
inserted
replaced
0:3c160414da2e | 1:d582e2cd3e13 |
---|---|
33 done | 33 done |
34 | 34 |
35 source "${repositorypath}/createHTML.sh" | 35 source "${repositorypath}/createHTML.sh" |
36 mkdir $galaxypath | 36 mkdir $galaxypath |
37 | 37 |
38 tabs=${tabs//,/ }; tabs=${tabs/ /} | 38 #tabs=${tabs//,/ }; tabs=${tabs/ /} |
39 #tabs=${tabs//==dollar==/$} | |
40 #tabs=${tabs//==braceopen==/(} | |
41 #tabs=${tabs//==braceclose==/)} | |
39 gbtracks=${gbtracks:1} | 42 gbtracks=${gbtracks:1} |
40 items=${items//,/ }; items=${items/ /} | 43 items=${items//,/ }; items=${items/ /} |
44 | |
45 title=${title//--/} | |
46 title=${title//label/} | |
47 title=${title// /} | |
48 | |
41 echo -e "title: $title" | 49 echo -e "title: $title" |
50 echo -n "$title" > tmpfileb64 | |
51 title=`base64 -d tmpfileb64` | |
52 echo -e "title decoded: $title" | |
42 | 53 |
43 #title=${title%--*} | 54 #title=${title%--*} |
44 title=${title//--/} | |
45 title=${title//label/} | |
46 | 55 |
47 reportname=${title// /} | 56 reportname=${title// /} |
48 | 57 |
49 echo -e "\n" | 58 echo -e "\n" |
50 echo -e "title: $title" | 59 echo -e "title: $title" |
59 for i in $tabs | 68 for i in $tabs |
60 do | 69 do |
61 echo "tabname: $i" | 70 echo "tabname: $i" |
62 done | 71 done |
63 | 72 |
64 coverimage=${coverimage:1} | 73 |
65 echo -e "coverimage2: $coverimage" | |
66 | 74 |
67 #if no coverimage provided, use default EMC logo | 75 #if no coverimage provided, use default EMC logo |
68 if [[ -z $coverimage ]] | 76 if [[ $coverimage == "-" ]] |
69 then | 77 then |
70 cp $repositorypath/intro.jpg ${galaxypath}/intro.jpg | 78 cp $repositorypath/intro.jpg ${galaxypath}/intro.jpg |
71 coverimage="intro.jpg" | 79 coverimage="intro.jpg" |
80 else | |
81 coverimage=${coverimage:1} | |
82 echo -n "$coverimage" > tmpfileb64 | |
83 coverimage=`base64 -d tmpfileb64` | |
72 fi | 84 fi |
73 echo -e "coverimage3: $coverimage" | |
74 | 85 |
75 ## Copy supporting files from repository to output directory | 86 ## Copy supporting files from repository to output directory |
76 cp ${repositorypath}/jquery.dataTables.css ${galaxypath}/jquery.dataTables.css | 87 cp ${repositorypath}/jquery.dataTables.css ${galaxypath}/jquery.dataTables.css |
77 cp ${repositorypath}/jquery.dataTables.js ${galaxypath}/jquery.dataTables.js | 88 cp ${repositorypath}/jquery.dataTables.js ${galaxypath}/jquery.dataTables.js |
78 cp -R ${repositorypath}/iframe-resizer/ ${galaxypath}/iframe-resizer/ | 89 cp -R ${repositorypath}/iframe-resizer/ ${galaxypath}/iframe-resizer/ > /dev/null 2>&1 |
79 cp -R ${repositorypath}/DataTables-1.9.4/ ${galaxypath}/DataTables-1.9.4/ | 90 cp -R ${repositorypath}/DataTables-1.9.4/ ${galaxypath}/DataTables-1.9.4/ > /dev/null 2>&1 |
80 cp ${repositorypath}/jquery.zoom.js ${galaxypath}/jquery.zoom.js | 91 cp ${repositorypath}/jquery.zoom.js ${galaxypath}/jquery.zoom.js |
81 cp ${repositorypath}/jquery-ui.css ${galaxypath}/jquery-ui.css | 92 cp ${repositorypath}/jquery-ui.css ${galaxypath}/jquery-ui.css |
82 cp ${repositorypath}/jquery-1.10.2.js ${galaxypath}/jquery-1.10.2.js | 93 cp ${repositorypath}/jquery-1.10.2.js ${galaxypath}/jquery-1.10.2.js |
83 cp ${repositorypath}/jquery-ui.js ${galaxypath}/jquery-ui.js | 94 cp ${repositorypath}/jquery-ui.js ${galaxypath}/jquery-ui.js |
84 cp ${repositorypath}/md.css ${galaxypath}/md.css | 95 cp ${repositorypath}/md.css ${galaxypath}/md.css |
101 | 112 |
102 | 113 |
103 ## Create zip file of this iReport for download by user | 114 ## Create zip file of this iReport for download by user |
104 wd=`pwd` | 115 wd=`pwd` |
105 cd ${galaxypath} | 116 cd ${galaxypath} |
106 zip -r iReport_${reportname} . | 117 zip -r iReport_${reportname} . > /dev/null 2>&1 |
107 cd $wd | 118 cd $wd |
108 | 119 |
109 wait | 120 wait |