-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathice-release-script
executable file
·53 lines (53 loc) · 1.63 KB
/
ice-release-script
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
#!/bin/tcsh
#
# tcsh shell script which makes a copy (clone) of the ICE project in github
# and constructs a distribution tar for ICE
#
# Run this script in a fresh directory
#
setenv JET_PACKAGE $JET_HOME/export/jet-bin/jet-190128.tar.gz
setenv JAVA_TOOL_OPTIONS "-Dfile.encoding=UTF-8"
rm -rf ice-bin
mkdir ice-bin
cd ice-bin
curl http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip > Markdown_1.0.1.zip
unzip Markdown_1.0.1.zip
echo "Unpacking Jet package..."
tar zxvf $JET_PACKAGE
mv props jet-props
git clone https://github.com/rgrishman/ice.git clone-dir
cp jet-all.jar clone-dir/lib
pushd clone-dir
git checkout newmaster
ant dist-all-jar
popd
cp clone-dir/ice-all.jar .
perl Markdown_1.0.1/Markdown.pl clone-dir/README.md > README.html
perl Markdown_1.0.1/Markdown.pl clone-dir/docs/iceman.md > docs/iceman.html
perl Markdown_1.0.1/Markdown.pl clone-dir/docs/ICE_Design.md > docs/ICE_Design.html
cp clone-dir/docs/*.png docs/
cp clone-dir/LICENSE ./
cp clone-dir/COPYRIGHT ./
# scripts
cp clone-dir/src/scripts/runice.sh ./bin
cp clone-dir/src/scripts/runtagger.sh ./bin
cp clone-dir/src/scripts/icecli ./bin
cp clone-dir/src/scripts/icecli6 ./bin
# ice.yml, iceprops, onomaprops, parseprops, props
cp clone-dir/src/props/* ./
# quantifierPatterns and ACE DTD
cp clone-dir/src/models/data/* ./data/
# files for export from ICE
touch acedata/ice_onoma.dict
touch acedata/EDTypesFromUser.dict
touch acedata/iceRelationModel
chmod u+x bin/runice.sh
chmod u+x bin/runtagger.sh
chmod u+x bin/icecli6
chmod u+x bin/icecli
rm -rf Markdown*
rm -rf clone-dir
cd ..
echo "Building ICE tar"
set date = `date +'%y%m%d'`
tar zcvf ice-$date.tar.gz ice-bin/