Skip to content

Commit 4580a15

Browse files
committed
version 1.7.4
1 parent 9753199 commit 4580a15

File tree

6 files changed

+28
-5873
lines changed

6 files changed

+28
-5873
lines changed

mat2doc/publish.py

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,16 @@
3131
mat2docpath=homefolder+'/work/git/mat2doc'
3232

3333
# 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'
3736
outputdirweb= '~/work/git/website/unlocbox-html/'
3837

3938
# -------- Configuration of note ------------
4039

4140
notesdir = homefolder+'/work/git/notes/unlocbox-note/'
4241
notehtml = homefolder+'/work/publish/unlocbox/notes/'
4342
noteswww = homefolder+'/work/git/website/unlocbox-html/notes/'
44-
43+
docwww = homefolder+'/work/git/website/unlocbox-html/doc/'
4544

4645
# -------- Configuration of doc tex ------------
4746
fulldocnote='003'
@@ -57,6 +56,7 @@
5756
outputdirmat=outputdir+projectname+'-mat/'
5857
outputdirrelease=outputdir+projectname+'-release/'
5958
outputdirtex=outputdir+projectname+'-tex/'
59+
outputdirhtml=outputdir+projectname+'-html/'
6060

6161
f=file(project+projectname+'_version')
6262
versionstring=f.read()[:-1]
@@ -67,7 +67,7 @@
6767
f.write('addpath ' + unlocxpath + '\n')
6868
f.write('init_unlocbox;\n\n')
6969
f.write('addpath ' + ltfatpath + '\n')
70-
f.write('ltfatstart;\n');
70+
f.write('ltfatstart;\n')
7171
f.close()
7272

7373

@@ -114,8 +114,8 @@
114114
# Remove unwanted files
115115
os.system('rm -rf '+outputdirmat+'mat2doc_old')
116116
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')
119119

120120
#fname=outputdir+'/'+projectname+'-'+versionstring
121121
## Create the Unix src package
@@ -139,35 +139,25 @@
139139
os.system('rm -r '+outputdir+projectname)
140140

141141

142+
# if 'sendphp' in todo:
142143

144+
# s="rsync -e 'ssh -p 10422' -av "+outputdirphp+' '+host+':'+www+'doc/'
145+
# print s
146+
# os.system(s)
143147

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)
153148

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)
171161

172162

173163

@@ -195,7 +185,8 @@
195185
#print line
196186
f.close()
197187

198-
188+
if 'copyhtml' in todo:
189+
os.system('rsync -av '+outputdirhtml+' '+docwww)
199190

200191

201192
# Make the notes
@@ -204,7 +195,6 @@
204195
todo.append('notesmake')
205196
todo.append('notestexclean')
206197
todo.append('notescopy')
207-
todo.append('notesend')
208198

209199
if 'notesclean' in todo:
210200

@@ -247,15 +237,4 @@
247237
os.system('rsync -av '+notehtml+' '+noteswww)
248238
# os.system("rsync -e 'ssh -p 10422' -av "+notehtml+' '+host+':'+noteswww);
249239

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-
261240

0 commit comments

Comments
 (0)