-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen_includes
executable file
·58 lines (50 loc) · 2.08 KB
/
gen_includes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!./python
# config setup
import ignoreDeprecation
import Configuration
config = Configuration.get_Configuration ('Configuration', 1)
############################################################################
# FUNCTIONS
############################################################################
def listToFile (str_list, filename):
print ("writing %s" % filename)
fp = open (filename, 'w')
for item in str_list:
fp.write ('%s\n' % item)
fp.close()
return
def stringToFile (s, filename):
listToFile ( [s], filename)
return
############################################################################
# MAIN LOGIC
############################################################################
def main ():
stringToFile (config['MGI_PEOPLE'], './include/mgi_people.html')
stringToFile (config['MGI_SUPPORT'], './include/mgi_support.html')
stringToFile (config['MGI_AMA'], './include/mgi_ama.html')
stringToFile (config['MGI_AMA_FORM'], './include/mgi_ama_form.html')
stringToFile (config['MGI_ACC'], './include/mgi_acc.html')
stringToFile (config['ELSEVIER'], './include/elsevier.html')
return
if __name__ == '__main__':
main()
#
# Warranty Disclaimer and Copyright Notice
#
# THE JACKSON LABORATORY MAKES NO REPRESENTATION ABOUT THE SUITABILITY OR
# ACCURACY OF THIS SOFTWARE OR DATA FOR ANY PURPOSE, AND MAKES NO WARRANTIES,
# EITHER EXPRESS OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE OR THAT THE USE OF THIS SOFTWARE OR DATA WILL NOT
# INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS, OR OTHER RIGHTS.
# THE SOFTWARE AND DATA ARE PROVIDED "AS IS".
#
# This software and data are provided to enhance knowledge and encourage
# progress in the scientific community and are to be used only for research
# and educational purposes. Any reproduction or use for commercial purpose
# is prohibited without the prior express written permission of the Jackson
# Laboratory.
#
# Copyright (c) 1996, 1999, 2002 by The Jackson Laboratory
# All Rights Reserved
#