Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354779

Summary: Git tag/release scripts need updating for Mac OSX
Product: [Eclipse Project] e4 Reporter: DJ Houghton <dj.houghton>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aniefer, irbull, pwebster, remy.suen, tjwatson
Version: unspecified   
Target Milestone: 0.12 M2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description DJ Houghton CLA 2011-08-15 17:40:12 EDT
When I use the latest scripts to tag for the build, I get the following error:

date: illegal option -- -
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]

It appears that my "date" command doesn't accept the --date arg.

Andrew and I have looked into it more and these appear to work. We get the Unix format back from the "git log" command and then convert it.

equinox:~/git/rt.equinox.p2$ git log -1 --format="%ct"
1313423013

equinox:~/git/rt.equinox.p2$ date -u -j -f "%s" "1313423013" "+%Y%m%d-%H%M"
20110815-1543

equinox:~/git/rt.equinox.p2$ uname -s
Darwin
Comment 1 Andrew Niefer CLA 2011-08-16 17:28:33 EDT
I have updated the script to use an alternate date syntax on mac.