Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354779 - Git tag/release scripts need updating for Mac OSX
Summary: Git tag/release scripts need updating for Mac OSX
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.12 M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 17:40 EDT by DJ Houghton CLA
Modified: 2011-08-16 17:28 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.