Skip to content

Commit 833f025

Browse files
committed
GH-438 make netbeans build number shorter - it uses date and short revision id
1 parent 933c56a commit 833f025

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

visualvm/build-nb.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# NetBeans 14 FCS
44
REV=c4f2d87113e1a2d2d4e21e8952e1f99612d5b3fd
55
BRANCH=release140
6-
BUILD_DATE=`git log -n1 --date=format:'%d%m%Y' $0 | fgrep 'Date' | awk '{print $2}'`
6+
BUILD_DATE=`git log -n1 --date=format:'%Y%m%d' $0 | fgrep 'Date' | awk '{print $2}'`
77
ZIPNAME=nb140_platform_$BUILD_DATE
88

99
set -e
@@ -12,7 +12,7 @@ mkdir -p build/nb/
1212
cd build/nb/
1313
BUILD_ROOT=`pwd`
1414
if [ -e $BUILD_ROOT/$ZIPNAME.zip ]; then
15-
echo "$BUILD_ROOT/$ZIPNAME.zip is upto date"
15+
echo "$BUILD_ROOT/$ZIPNAME.zip is up to date"
1616
exit
1717
fi
1818
if [ -e netbeans ]; then
@@ -258,10 +258,10 @@ EOF
258258
git status
259259

260260
OPTS=-Dbuild.compiler.debuglevel=source,lines
261-
261+
SHORT_REV=`git rev-parse --short HEAD`
262262
git clean -fdX
263263
cd nbbuild
264-
ant $OPTS -Dname=platform rebuild-cluster
265-
ant $OPTS -Dname=harness rebuild-cluster
264+
ant $OPTS -Dname=platform -Dbuildnumber=$BUILD_DATE-$SHORT_REV rebuild-cluster
265+
ant $OPTS -Dname=harness -Dbuildnumber=$BUILD_DATE-$SHORT_REV rebuild-cluster
266266

267267
zip -r $BUILD_ROOT/$ZIPNAME.zip netbeans

0 commit comments

Comments
 (0)