Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 12610a4

Browse files
committed
Merge branch 'develop'
2 parents 6aaa848 + fd224d9 commit 12610a4

File tree

127 files changed

+1851
-716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1851
-716
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2021, Rice University
3+
Copyright (c) 2022, Rice University
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

build.sh

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,23 @@ if [ "$JAVA_MAJOR_VERSION" -lt "$jvm_required" ]; then
5656
fi
5757

5858
show_help(){
59-
echo "Syntax: $0 [-options]"
59+
echo "Syntax: $0 [-options] [commands]"
6060
echo "Options: "
61-
echo "-c check to create a package without generating the release number"
61+
echo "-c create a package and generate the release number"
6262
echo "-n (Mac only) notarize the package"
6363
echo "-r <release_number> specify the release number"
64+
echo "Commands:"
65+
echo " clean : remove objects and temporary files"
6466
exit
6567
}
6668

67-
CHECK=0
69+
clean_up() {
70+
mvn clean
71+
rm -f scripts/hpcviewer_launcher.sh
72+
exit
73+
}
74+
75+
CHECK=1
6876
#------------------------------------------------------------
6977
# start to build
7078
#------------------------------------------------------------
@@ -77,8 +85,12 @@ do
7785
key="$1"
7886

7987
case $key in
88+
clean)
89+
clean_up
90+
shift # past argument
91+
;;
8092
-c|--check)
81-
CHECK=1
93+
CHECK=0
8294
shift # past argument
8395
;;
8496
-h|--help)
@@ -114,21 +126,32 @@ name="hpcviewer"
114126
sh_file="scripts/${name}.sh"
115127
launcher_name="${name}_launcher.sh"
116128
launcher="scripts/${launcher_name}"
129+
RELEASE_FILE="edu.rice.cs.hpcviewer.ui/release.txt"
130+
OS=`uname`
117131

118-
if [ "$CHECK" == "0" ]; then
119-
# create the release number
120-
VERSION="Release ${RELEASE}. Commit $GITC"
121-
echo "$VERSION" > edu.rice.cs.hpcviewer.ui/release.txt
122-
123-
# insert the release number to the launcher script:
124-
# first, copy the launcher script
125-
# second, replace the release variable with the current version
132+
# insert the release number to the launcher script:
133+
# first, copy the launcher script
134+
# second, replace the release variable with the current version
126135

127-
cp -f "$sh_file" "$launcher" \
136+
cp -f "$sh_file" "$launcher" \
128137
|| die "unable to copy files"
129138

130-
sed -i "s/__VERSION__/$VERSION/g" $launcher
139+
if [ "$CHECK" == "0" ]; then
140+
# create the release number: the current month and the commit hash
141+
# users may don't care with the hash, but it's important for debugging
142+
VERSION="Release ${RELEASE}. Commit $GITC"
143+
echo "$VERSION" > ${RELEASE_FILE}
144+
else
145+
VERSION=`cat $RELEASE_FILE`
146+
fi
147+
148+
if [[ "$OS" == "Darwin" ]]; then
149+
sed -i '' "s/__VERSION__/\"$VERSION\"/g" $launcher
150+
else
151+
sed -i "s/__VERSION__/\"$VERSION\"/g" $launcher
131152
fi
153+
154+
# This is not necessary: removing old release files
132155
rm -rf hpcviewer-${RELEASE}*
133156

134157
#
@@ -238,7 +261,6 @@ repackage_mac $input $output
238261
###################################################################
239262
# special treatement for mac OS
240263
###################################################################
241-
OS=`uname`
242264
if [[ "$OS" == "Darwin" && "$NOTARIZE" == "1" ]]; then
243265
macPkgs="hpcviewer-${RELEASE}-macosx.cocoa.x86_64.zip"
244266
macos/notarize.sh $macPkgs
@@ -248,6 +270,10 @@ if [[ "$OS" == "Darwin" && "$NOTARIZE" == "1" ]]; then
248270
fi
249271

250272

273+
###################################################################
274+
# packaging the hpcdata
275+
###################################################################
276+
251277
echo "=================================="
252278
echo " Done"
253279
echo "=================================="

edu.rice.cs.hpcapp/.classpath

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>
File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<extensions>
2+
<extension>
3+
<groupId>org.eclipse.tycho.extras</groupId>
4+
<artifactId>tycho-pomless</artifactId>
5+
<version>2.2.0</version>
6+
</extension>
7+
</extensions>

edu.rice.cs.hpcdata.test/.project renamed to edu.rice.cs.hpcapp/.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>edu.rice.cs.hpcdata.test</name>
3+
<name>edu.rice.cs.hpcapp</name>
44
<comment></comment>
55
<projects>
66
</projects>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/org.eclipse.jdt.core.prefs
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: hpcapp
4+
Bundle-SymbolicName: edu.rice.cs.hpcapp
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Vendor: Rice University
7+
Automatic-Module-Name: edu.rice.cs.hpcapp
8+
Bundle-RequiredExecutionEnvironment: JavaSE-11
9+
Require-Bundle: edu.rice.cs.hpcdata,
10+
edu.rice.cs.hpcdata.merge
File renamed without changes.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
3+
# libraries and jar needed to run hpcapp program
4+
# if hpcdata requires more jar, need to include in this variable manually
5+
# Notes: Please do not specify the version number of the jar file to keep portability
6+
# across different versions
7+
8+
ROOT="../.."
9+
TEMP="jars"
10+
POSITIONAL=()
11+
12+
show_help(){
13+
echo "$0 [options] [commands]"
14+
echo "-h,--help show this help"
15+
echo "clean remove the temporary files"
16+
exit 0
17+
}
18+
19+
clean_up() {
20+
rm -rf $TEMP
21+
exit 0
22+
}
23+
24+
while [[ $# -gt 0 ]]
25+
do
26+
key="$1"
27+
28+
case $key in
29+
clean)
30+
clean_up
31+
;;
32+
-h|--help)
33+
show_help
34+
shift
35+
;;
36+
esac
37+
done
38+
39+
set -- "${POSITIONAL[@]}" # restore positional parameters
40+
41+
FILES="edu.rice.cs.hpcviewer.product/target/repository/plugins/ca.odell.glazedlists*.jar \
42+
edu.rice.cs.hpcviewer.product/target/repository/plugins/org.eclipse.collections*.jar \
43+
externals/graphbuilder/target/com.graphbuilder-*.jar \
44+
edu.rice.cs.hpcdata/target/edu.rice.cs.hpcdata-*.jar \
45+
edu.rice.cs.hpcdata.merge/target/edu.rice.cs.hpcdata.merge-*.jar \
46+
edu.rice.cs.hpcapp/target/edu.rice.cs.hpcapp-*.jar"
47+
48+
rm -rf ${TEMP}
49+
mkdir ${TEMP}
50+
51+
for f in ${FILES}; do
52+
JAR="${ROOT}/${f}"
53+
if [ -r ${JAR} ]; then
54+
BASE=`basename $JAR`
55+
CMD="cp $JAR ${TEMP}/${BASE}"
56+
echo $CMD
57+
${CMD}
58+
else
59+
echo "File not found: ${JAR}"
60+
exit 1
61+
fi
62+
done
63+
echo "tar the script and jar files..."
64+
tar czf hpcdata.tgz hpcdata.sh ${TEMP}
65+
echo "output: "
66+
ls -l *.tgz

0 commit comments

Comments
 (0)