Browse Source

Some improvements

84582af
Dirk Alders 3 years ago
parent
commit
0f4fbe3a58
2 changed files with 7 additions and 5 deletions
  1. 3
    0
      gitsubup
  2. 4
    5
      mkunittest

+ 3
- 0
gitsubup View File

1
+#!/bin/sh
2
+#
3
+git submodule foreach git checkout master && git submodule foreach git pull

+ 4
- 5
mkunittest View File

1
-#!/usr/bin/env python
1
+#!/usr/bin/env python3
2
 # -*- coding: UTF-8 -*-
2
 # -*- coding: UTF-8 -*-
3
 
3
 
4
 import os
4
 import os
137
 with open('.gitignore', 'w') as fh:
137
 with open('.gitignore', 'w') as fh:
138
     fh.write(gitignore)
138
     fh.write(gitignore)
139
 os.mkdir('docs')
139
 os.mkdir('docs')
140
-os.mkdir('examples')
141
-os.symlink('../pylibs/%s' % name, 'examples/%s' % name)
140
+os.symlink('../pylibs/%s' % name, 'docs/%s' % name)
142
 os.mkdir('pylibs')
141
 os.mkdir('pylibs')
143
 os.mkdir('requirements')
142
 os.mkdir('requirements')
144
 os.mkdir('unittest')
143
 os.mkdir('unittest')
145
-os.symlink('../pylibs/unittest/unittest_flow.sh', 'unittest/unittest.sh')
144
+os.symlink('../pylibs/unittest/scripts/unittest.sh', 'unittest/unittest.sh')
145
+os.symlink('../pylibs/unittest/scripts/unittest.py', 'unittest/unittest.py')
146
 os.mkdir('unittest/input_data')
146
 os.mkdir('unittest/input_data')
147
 os.mkdir('unittest/output_data')
147
 os.mkdir('unittest/output_data')
148
 os.mkdir('unittest/src')
148
 os.mkdir('unittest/src')
155
 os.mkdir('unittest/src/tests')
155
 os.mkdir('unittest/src/tests')
156
 with open('unittest/src/tests/__init__.py', 'w') as fh:
156
 with open('unittest/src/tests/__init__.py', 'w') as fh:
157
     fh.write(test_init_py)
157
     fh.write(test_init_py)
158
-

Loading…
Cancel
Save