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

Commit cb689c2

Browse files
committed
Merge branch 'develop'
2 parents 12610a4 + ab6a5cf commit cb689c2

Some content is hidden

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

54 files changed

+453
-289
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

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

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

build.sh

+29-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2002-2021, Rice University.
3+
# Copyright (c) 2002-2022, Rice University.
44
# See the file edu.rice.cs.hpcviewer.ui/License.txt for details.
55
#
66
# Build hpcviewer and generate tar or zip files
@@ -58,9 +58,9 @@ fi
5858
show_help(){
5959
echo "Syntax: $0 [-options] [commands]"
6060
echo "Options: "
61-
echo "-c create a package and generate the release number"
62-
echo "-n (Mac only) notarize the package"
63-
echo "-r <release_number> specify the release number"
61+
echo " -c create a package and generate the release number"
62+
echo " -n (Mac only) notarize the package"
63+
echo " -r <release> specify the release number"
6464
echo "Commands:"
6565
echo " clean : remove objects and temporary files"
6666
exit
@@ -69,6 +69,9 @@ show_help(){
6969
clean_up() {
7070
mvn clean
7171
rm -f scripts/hpcviewer_launcher.sh
72+
cd edu.rice.cs.hpcdata.app/scripts/
73+
./build.sh clean
74+
cd ../..
7275
exit
7376
}
7477

@@ -89,7 +92,7 @@ case $key in
8992
clean_up
9093
shift # past argument
9194
;;
92-
-c|--check)
95+
-c|--create)
9396
CHECK=0
9497
shift # past argument
9598
;;
@@ -274,8 +277,29 @@ fi
274277
# packaging the hpcdata
275278
###################################################################
276279

280+
echo "=================================="
281+
echo " Building hpcdata"
282+
echo "=================================="
283+
284+
cd edu.rice.cs.hpcdata.app/scripts
285+
./build.sh
286+
if [ -f hpcdata*.tgz ]; then
287+
cp hpcdata*.tgz ../..
288+
else
289+
echo "Fail to build hpcdata"
290+
fi
291+
292+
cd ../..
293+
294+
###################################################################
295+
# End
296+
###################################################################
297+
277298
echo "=================================="
278299
echo " Done"
279300
echo "=================================="
280301

281302
ls -l hpcviewer-${RELEASE}-*
303+
if [ -f hpcdata*.tgz ]; then
304+
ls -l hpcdata*
305+
fi

edu.rice.cs.hpcapp/src/edu/rice/cs/hpcapp/PrintData.java

-228
This file was deleted.
File renamed without changes.
File renamed without changes.

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

+1-1
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.hpcapp</name>
3+
<name>edu.rice.cs.hpcdata.app</name>
44
<comment></comment>
55
<projects>
66
</projects>
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
3-
Bundle-Name: hpcapp
4-
Bundle-SymbolicName: edu.rice.cs.hpcapp
3+
Bundle-Name: hpcdata.app
4+
Bundle-SymbolicName: edu.rice.cs.hpcdata.app
55
Bundle-Version: 1.0.0.qualifier
66
Bundle-Vendor: Rice University
7-
Automatic-Module-Name: edu.rice.cs.hpcapp
7+
Automatic-Module-Name: edu.rice.cs.hpcdata.app
88
Bundle-RequiredExecutionEnvironment: JavaSE-11
99
Require-Bundle: edu.rice.cs.hpcdata,
1010
edu.rice.cs.hpcdata.merge

edu.rice.cs.hpcapp/scripts/build.sh renamed to edu.rice.cs.hpcdata.app/scripts/build.sh

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# libraries and jar needed to run hpcapp program
3+
# libraries and jar needed to run hpcdata program
44
# if hpcdata requires more jar, need to include in this variable manually
55
# Notes: Please do not specify the version number of the jar file to keep portability
66
# across different versions
@@ -11,16 +11,20 @@ POSITIONAL=()
1111

1212
show_help(){
1313
echo "$0 [options] [commands]"
14-
echo "-h,--help show this help"
15-
echo "clean remove the temporary files"
14+
echo "-h,--help Show this help"
15+
echo "-r,--release <n> Set the release number to <n>"
16+
echo "clean Remove the temporary files"
1617
exit 0
1718
}
1819

1920
clean_up() {
20-
rm -rf $TEMP
21+
rm -rf $TEMP LICENSE
2122
exit 0
2223
}
2324

25+
# default release number: yyyy.mm
26+
RELEASE=`date +"%Y.%m"`
27+
2428
while [[ $# -gt 0 ]]
2529
do
2630
key="$1"
@@ -33,6 +37,11 @@ case $key in
3337
show_help
3438
shift
3539
;;
40+
-r|--release)
41+
RELEASE="$2"
42+
shift
43+
shift
44+
;;
3645
esac
3746
done
3847

@@ -43,7 +52,7 @@ FILES="edu.rice.cs.hpcviewer.product/target/repository/plugins/ca.odell.glazedli
4352
externals/graphbuilder/target/com.graphbuilder-*.jar \
4453
edu.rice.cs.hpcdata/target/edu.rice.cs.hpcdata-*.jar \
4554
edu.rice.cs.hpcdata.merge/target/edu.rice.cs.hpcdata.merge-*.jar \
46-
edu.rice.cs.hpcapp/target/edu.rice.cs.hpcapp-*.jar"
55+
edu.rice.cs.hpcdata.app/target/edu.rice.cs.hpcdata.app-*.jar"
4756

4857
rm -rf ${TEMP}
4958
mkdir ${TEMP}
@@ -61,6 +70,5 @@ for f in ${FILES}; do
6170
fi
6271
done
6372
echo "tar the script and jar files..."
64-
tar czf hpcdata.tgz hpcdata.sh ${TEMP}
65-
echo "output: "
66-
ls -l *.tgz
73+
cp ../../LICENSE .
74+
tar czf hpcdata-${RELEASE}.tgz hpcdata.sh ${TEMP} LICENSE

0 commit comments

Comments
 (0)