|
31 | 31 | mat2docpath=homefolder+'/work/git/mat2doc'
|
32 | 32 |
|
33 | 33 | # Configure matlab paths
|
34 |
| -unlocxpath = homefolder+'/work/git/toolbox/unlocbox'; |
35 |
| -ltfatpath = homefolder+'/work/git/toolbox/ltfat'; |
36 |
| - |
| 34 | +unlocxpath = homefolder+'/work/git/toolbox/unlocbox' |
| 35 | +ltfatpath = homefolder+'/work/git/toolbox/ltfat' |
37 | 36 | outputdirweb= '~/work/git/website/unlocbox-html/'
|
38 | 37 |
|
39 | 38 | # -------- Configuration of note ------------
|
40 | 39 |
|
41 | 40 | notesdir = homefolder+'/work/git/notes/unlocbox-note/'
|
42 | 41 | notehtml = homefolder+'/work/publish/unlocbox/notes/'
|
43 | 42 | noteswww = homefolder+'/work/git/website/unlocbox-html/notes/'
|
44 |
| - |
| 43 | +docwww = homefolder+'/work/git/website/unlocbox-html/doc/' |
45 | 44 |
|
46 | 45 | # -------- Configuration of doc tex ------------
|
47 | 46 | fulldocnote='003'
|
|
57 | 56 | outputdirmat=outputdir+projectname+'-mat/'
|
58 | 57 | outputdirrelease=outputdir+projectname+'-release/'
|
59 | 58 | outputdirtex=outputdir+projectname+'-tex/'
|
| 59 | +outputdirhtml=outputdir+projectname+'-html/' |
60 | 60 |
|
61 | 61 | f=file(project+projectname+'_version')
|
62 | 62 | versionstring=f.read()[:-1]
|
|
67 | 67 | f.write('addpath ' + unlocxpath + '\n')
|
68 | 68 | f.write('init_unlocbox;\n\n')
|
69 | 69 | f.write('addpath ' + ltfatpath + '\n')
|
70 |
| -f.write('ltfatstart;\n'); |
| 70 | +f.write('ltfatstart;\n') |
71 | 71 | f.close()
|
72 | 72 |
|
73 | 73 |
|
|
114 | 114 | # Remove unwanted files
|
115 | 115 | os.system('rm -rf '+outputdirmat+'mat2doc_old')
|
116 | 116 | os.system('rm -rf '+outputdirmat+'test_bench')
|
117 |
| - os.system('rm '+outputdirmat+'demos/demo_lrjs.m') |
118 |
| - os.system('rm '+outputdirmat+'solver/solve_lrjs.m') |
| 117 | + # os.system('rm '+outputdirmat+'demos/demo_lrjs.m') |
| 118 | + # os.system('rm '+outputdirmat+'solver/solve_lrjs.m') |
119 | 119 |
|
120 | 120 | #fname=outputdir+'/'+projectname+'-'+versionstring
|
121 | 121 | ## Create the Unix src package
|
|
139 | 139 | os.system('rm -r '+outputdir+projectname)
|
140 | 140 |
|
141 | 141 |
|
| 142 | +# if 'sendphp' in todo: |
142 | 143 |
|
| 144 | +# s="rsync -e 'ssh -p 10422' -av "+outputdirphp+' '+host+':'+www+'doc/' |
| 145 | +# print s |
| 146 | +# os.system(s) |
143 | 147 |
|
144 |
| -# Send to the server |
145 |
| - |
146 |
| - |
147 |
| -if 'sendphp' in todo: |
148 |
| - |
149 |
| - s="rsync -e 'ssh -p 10422' -av "+outputdirphp+' '+host+':'+www+'doc/' |
150 |
| -# s='rsync -av '+outputdirphp+' '+host+':'+www+'doc/' |
151 |
| - print s |
152 |
| - os.system(s) |
153 | 148 |
|
154 |
| - |
155 |
| -#if 'sendweb' in todo: |
156 |
| -# s='rsync -av --exclude=".svn" '+outputdirweb+' '+host+':'+www |
157 |
| -# os.system(s) |
158 |
| - |
159 |
| -if 'sendfile' in todo: |
160 |
| - fname=outputdir+projectname+'-'+versionstring |
161 |
| - # later on to put file on file of sourceforge |
162 |
| - # s ='rsync -e ssh '+outputdir+fname+'.tar.gz '+'[email protected]:/home/frs/project/'+projectname+'/' |
163 |
| - s = 'cp '+fname+'.tar.gz '+outputdir+projectname+'.tar.gz ' |
164 |
| - os.system(s) |
165 |
| - s = 'cp '+fname+'.zip '+outputdir+projectname+'.zip ' |
166 |
| - os.system(s) |
167 |
| - s='rsync -av '+outputdir+projectname+'.tar.gz '+host+':'+www |
168 |
| - os.system(s) |
169 |
| - s='rsync -av '+outputdir+projectname+'.zip '+host+':'+www |
170 |
| - os.system(s) |
| 149 | +# if 'sendfile' in todo: |
| 150 | +# fname=outputdir+projectname+'-'+versionstring |
| 151 | +# # later on to put file on file of sourceforge |
| 152 | +# # s ='rsync -e ssh '+outputdir+fname+'.tar.gz '+'[email protected]:/home/frs/project/'+projectname+'/' |
| 153 | +# s = 'cp '+fname+'.tar.gz '+outputdir+projectname+'.tar.gz ' |
| 154 | +# os.system(s) |
| 155 | +# s = 'cp '+fname+'.zip '+outputdir+projectname+'.zip ' |
| 156 | +# os.system(s) |
| 157 | +# s='rsync -av '+outputdir+projectname+'.tar.gz '+host+':'+www |
| 158 | +# os.system(s) |
| 159 | +# s='rsync -av '+outputdir+projectname+'.zip '+host+':'+www |
| 160 | +# os.system(s) |
171 | 161 |
|
172 | 162 |
|
173 | 163 |
|
|
195 | 185 | #print line
|
196 | 186 | f.close()
|
197 | 187 |
|
198 |
| - |
| 188 | +if 'copyhtml' in todo: |
| 189 | + os.system('rsync -av '+outputdirhtml+' '+docwww) |
199 | 190 |
|
200 | 191 |
|
201 | 192 | # Make the notes
|
|
204 | 195 | todo.append('notesmake')
|
205 | 196 | todo.append('notestexclean')
|
206 | 197 | todo.append('notescopy')
|
207 |
| - todo.append('notesend') |
208 | 198 |
|
209 | 199 | if 'notesclean' in todo:
|
210 | 200 |
|
|
247 | 237 | os.system('rsync -av '+notehtml+' '+noteswww)
|
248 | 238 | # os.system("rsync -e 'ssh -p 10422' -av "+notehtml+' '+host+':'+noteswww);
|
249 | 239 |
|
250 |
| -if 'sendweb' in todo: |
251 |
| - pass |
252 |
| -# s="rsync --verbose --archive --exclude '.git' "+outputdirweb+' '+host+':'+www |
253 |
| - # s="rsync -e 'ssh -p 10422' --verbose --archive --exclude '.git' "+outputdirweb+' '+host+':'+www |
254 |
| - # os.system(s) |
255 |
| - |
256 |
| - |
257 |
| - |
258 |
| - |
259 |
| - |
260 |
| - |
261 | 240 |
|
0 commit comments