-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
157 lines (118 loc) · 5.91 KB
/
setup
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
### Setup file for WordHoard development.
#
# To work on WordHoard, change to your WordHoard development directory, then
# source this setup file.
# Define environment variables.
setenv MYSQL_ROOT_USERNAME root
setenv MYSQL_ROOT_PASSWORD my-password
setenv MYSQL_BIN /usr/local/mysql/bin
setenv MYSQL_DATA /usr/local/mysql/data
setenv ANT_HOME /usr/local/ant
setenv ANT_OPTS -Xmx500m
setenv CODEBASE https://wordhoard.eumnestes.org/client/
setenv HOMEPAGE https://wordhoard.eumnestes.org
setenv JAVA_HOME `/usr/libexec/java_home -v 1.8`
# Define the Java classpath.
setenv CLASSPATH bin
foreach jarfile (lib/*.jar)
setenv CLASSPATH ${CLASSPATH}:$jarfile
end
# Useful MySQL aliases.
alias mysql-start "sudo -b $MYSQL_BIN/safe_mysqld --user=mysql"
alias mysql-stop "$MYSQL_BIN/mysqladmin -u $MYSQL_ROOT_USERNAME -p$MYSQL_ROOT_PASSWORD shutdown"
alias mysql "$MYSQL_BIN/mysql -u $MYSQL_ROOT_USERNAME -p$MYSQL_ROOT_PASSWORD"
alias mysql-welles /usr/local/mysql/bin/mysql -h welles.library.northwestern.edu \
-P 3307 -u root -pmy-password
# A "b" alias for Ant (for "build").
alias b "$ANT_HOME/bin/ant"
# Aliases to start and stop the WordHoard server.
alias start "java -Xmx500m edu/northwestern/at/wordhoard/server/Server start server/data &"
alias stop "java edu/northwestern/at/wordhoard/server/Server stop server/data"
# Aliases to run the WordHoard client.
alias r "java -Xmx1g -Xdock:name=WordHoard edu/northwestern/at/wordhoard/swing/WordHoard \\
file:misc/localhost.xml"
alias rr "java -Xmx1g -Xdock:name=WordHoard edu/northwestern/at/wordhoard/swing/WordHoard \\
file:misc/sites.xml"
alias rscribe "java -Xmx1g -Xdock:name=WordHoard edu/northwestern/at/wordhoard/swing/WordHoard \\
file:misc/scribe.xml"
# Aliases to run the build scripts.
alias full-build "scripts/full-build.csh >misc/full-build.txt"
alias cdb "scripts/create-client-database.csh"
alias bco "scripts/build-corpora.csh"
alias bau "scripts/build-authors.csh"
alias bwc "scripts/build-word-classes.csh"
alias bpo "scripts/build-pos.csh"
alias bbg "scripts/build-benson-glosses.csh"
alias bini "cdb;bco;bau;bwc;bpo;bbg"
alias baw "scripts/build-all-works.csh"
alias bw "scripts/build-work.csh"
alias ban "scripts/build-annotations.csh"
alias bat "scripts/build-all-translations.csh"
alias bt "scripts/build-translation.csh"
alias cc "scripts/calculate-counts.csh"
alias bws "scripts/build-work-sets.csh"
alias atb "scripts/analyze-tables.csh"
alias bws-welles java -Xmx500m edu/northwestern/at/wordhoard/tools/BuildWorkSets \
data/work-sets.xml \
welles.library.northwestern.edu:3307/wordhoard \
root \
my-password
# Deployment aliases.
alias russell-vars "source scripts/russell-vars"
alias make-other-files "scripts/make-other-files.csh"
alias tar-raw-data "scripts/tar-raw-data.csh"
alias create-client-jar "scripts/create-client-jar.csh"
alias create-server-jar "scripts/create-server-jar.csh"
# Aliases to apply Martin's updates.
alias create-martin-database "scripts/create-martin-database.csh"
alias import-all "scripts/import-all.csh"
alias martin-update "scripts/martin-update.csh >martin/report.txt"
# Aliases for working with NCF/Stein and Monk.
alias cm "scripts/convert-morph.csh"
alias scribe "ssh scribe.at.northwestern.edu"
alias put-MorphAdorner "scp -r MorphAdorner scribe.at.northwestern.edu:wordhoard"
alias put-scripts "scp -r scripts scribe.at.northwestern.edu:wordhoard"
alias put-bin "scp -r bin scribe.at.northwestern.edu:wordhoard"
alias put-data "scp -r data scribe.at.northwestern.edu:wordhoard"
# Aliases for other scripts.
alias csdb "scripts/create-server-database.csh"
alias mysql-grants "scripts/mysql-grants.csh"
# Other aliases, mostly miscellaneous junk.
alias noir-wordhoard "ssh [email protected]"
alias welles-whoard "ssh [email protected]"
alias cld "java -Xmx500m edu.northwestern.at.wordhoard.tools.CloneData \\
data /Volumes/LaCie500/data 2"
alias tf "scripts/test-filter.csh"
alias rf "scripts/run-filter.csh"
alias rfa "scripts/run-filter-all.csh"
alias style-test "java -Xmx500m edu/northwestern/at/wordhoard/tools/BuildWork \\
data/testing/style-test.xml debug"
alias bwf "java -Xmx500m edu/northwestern/at/wordhoard/tools/BuildWork"
alias r4 "java4 -Xmx500m edu/northwestern/at/wordhoard/swing/WordHoard"
alias start4 "java4 -Xmx500m edu/northwestern/at/wordhoard/server/Server start server/data &"
alias mysql-russell "$MYSQL_BIN/mysql \\
-h russell.at.northwestern.edu -u wordhoard -pwordhoard"
alias schema-test "java org.hibernate.tool.hbm2ddl.SchemaExport --text \\
--format bin/edu/northwestern/at/wordhoard/model/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/annotations/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/bibtool/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/counts/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/grouping/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/morphology/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/querytool/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/search/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/speakers/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/text/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/userdata/*.hbm.xml \\
bin/edu/northwestern/at/wordhoard/model/wrappers/*.hbm.xml"
alias server-schema-test "java org.hibernate.tool.hbm2ddl.SchemaExport --text \\
--format bin/edu/northwestern/at/wordhoard/server/model/*.hbm.xml"
alias dw "java -Xmx200m edu/northwestern/at/wordhoard/tools/DeleteWork \!*"
alias cxml "java edu/northwestern/at/utils/tools/CatalogXML \!*"
alias probsDemo "java edu/northwestern/at/wordhoard/tools/HibernateProblemsDemo"
alias csd "java edu/northwestern/at/wordhoard/tools/CharSetDisplay"
alias gcu "java -Xmx500m edu/northwestern/at/wordhoard/tools/GetCharsUsed"
alias st "java edu/northwestern/at/wordhoard/tools/StyleTest"
alias scholia-sed "sed -f data/IliadScholia/sed-commands.txt \\
data/IliadScholia/IliadScholia-orig.xml \\
>data/IliadScholia/IliadScholia.xml"