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

Commit 97b286a

Browse files
authored
Merge pull request #31 from HPCToolkit/develop
Merged from Develop: - Add dialog window to show useful information (log, system, ...) - Adjust column width in stat and blame views - Select the first item in the table - Lazily merging metric-db - Add regular expression in filter window - on mac: scroll table to show new column - refine packaging script
2 parents 40ddff9 + f449fac commit 97b286a

File tree

18 files changed

+634
-448
lines changed

18 files changed

+634
-448
lines changed

build.sh

+79-25
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,99 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2002-2020, Rice University.
4+
# See the file edu.rice.cs.hpcviewer.ui/License.txt for details.
5+
#
6+
# Build hpcviewer and generate tar or zip files
7+
# This script is only for Unix and X windows.
8+
#
29

10+
if ! command -v mvn &> /dev/null
11+
then
12+
echo "Maven mvn command is not found"
13+
echo "Please install Apache maven"
14+
exit
15+
fi
16+
17+
#
18+
# Update the release file
19+
#
320
GITC=`git rev-parse --short HEAD`
421
release=`date +"%Y.%m.%d"`
522

623
echo "Release ${release}. Commit $GITC" > edu.rice.cs.hpcviewer.ui/release.txt
724

25+
#
26+
# build the viewer
27+
#
28+
echo "=================================="
29+
echo " Building the viewer"
30+
echo "=================================="
831
mvn clean package
9-
platform=`uname -m`
10-
prefix="linux.gtk"
11-
extension="tgz"
1232

13-
os=`uname`
33+
# The result should be:
34+
#
35+
# Building tar: edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-linux.gtk.x86_64.tar.gz
36+
# Building tar: edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-linux.gtk.ppc64le.tar.gz
37+
# Building zip: edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-win32.win32.x86_64.zip
38+
# Building zip: edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-macosx.cocoa.x86_64.zip
1439

15-
if [ "$os" == "Darwin" ]; then
16-
prefix="macosx.cocoa"
17-
extension="zip"
18-
fi
40+
echo "=================================="
41+
echo " Repackaging the viewer"
42+
echo "=================================="
1943

20-
package=`ls edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-${prefix}.${platform}*`
44+
# wrap the generated files into standard hpcviewer product
45+
#
2146

22-
if [ -e "$package" ]; then
23-
echo "package: $package"
24-
else
25-
echo "package ${package} not found"
26-
exit
27-
fi
47+
# repackage
48+
repackage_linux(){
49+
prefix=$1
50+
platform=$2
51+
package=`ls edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-${prefix}.${platform}*`
52+
extension="tgz"
53+
54+
[[ -z $package ]] && { echo "$package doesn't exist"; exit 1; }
55+
56+
mkdir -p tmp/hpcviewer
57+
cd tmp/hpcviewer
58+
59+
tar xzf ../../$package
60+
cp ../../scripts/* .
61+
62+
cd ..
63+
64+
output="hpcviewer-${release}-${prefix}.${platform}.$extension"
65+
tar czf ../$output hpcviewer/
66+
67+
cd ..
68+
ls -l $output
69+
rm -rf tmp
70+
}
2871

29-
mkdir -p tmp/hpcviewer
30-
cd tmp/hpcviewer
72+
repackage_nonLinux(){
73+
input=$1
74+
output=$2
3175

32-
tar xzf ../../$package
33-
cp ../../scripts/* .
76+
[[ -z $input ]] && { echo "$input doesn't exist"; exit 1; }
3477

35-
cd ..
78+
cp $input $output
79+
ls -l $output
80+
}
3681

37-
output="hpcviewer-${release}-${prefix}.${platform}.$extension"
82+
# repackage linux files
83+
repackage_linux linux.gtk x86_64
84+
repackage_linux linux.gtk ppc64le
3885

39-
tar czf ../$output hpcviewer/
86+
# copy and rename mac file
87+
output="hpcviewer-${release}-win32.win32.x86_64.zip"
88+
input=edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-win32.win32.x86_64.zip
89+
repackage_nonLinux $input $output
4090

41-
cd ..
91+
# copy and rename windows file
92+
output="hpcviewer-${release}-macosx.cocoa.x86_64.zip"
93+
input=edu.rice.cs.hpcviewer.product/target/products/edu.rice.cs.hpcviewer-macosx.cocoa.x86_64.zip
94+
cp $input $output
4295

43-
ls -l $output
96+
echo "=================================="
97+
echo " Done"
98+
echo "=================================="
4499

45-
rm -rf tmp

edu.rice.cs.hpc.data/src/edu/rice/cs/hpc/data/db/version3/DataThread.java

-186
This file was deleted.

edu.rice.cs.hpc.filter/META-INF/MANIFEST.MF

+3-8
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ Require-Bundle: edu.rice.cs.hpcbase,
2020
org.eclipse.e4.ui.workbench,
2121
org.eclipse.e4.ui.di,
2222
org.eclipse.e4.ui.model.workbench,
23-
org.slf4j.api
23+
org.slf4j.api,
24+
org.eclipse.swt,
25+
edu.rice.cs.hpc.data
2426
Bundle-ActivationPolicy: lazy
25-
Import-Package: edu.rice.cs.hpc.data.experiment,
26-
edu.rice.cs.hpc.data.experiment.metric,
27-
edu.rice.cs.hpc.data.experiment.scope,
28-
edu.rice.cs.hpc.data.experiment.scope.filters,
29-
edu.rice.cs.hpc.data.experiment.scope.visitors,
30-
edu.rice.cs.hpc.data.filter,
31-
edu.rice.cs.hpc.data.util
3227
Automatic-Module-Name: edu.rice.cs.hpc.filter

0 commit comments

Comments
 (0)