projects
/
platform
/
upstream
/
elfutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9449dfb
)
take date from spec file
author
Anas Nashif
<anas.nashif@intel.com>
Thu, 8 Nov 2012 02:51:34 +0000
(18:51 -0800)
committer
Anas Nashif
<anas.nashif@intel.com>
Sat, 6 Jul 2013 14:57:51 +0000
(10:57 -0400)
packaging/elfutils.spec
patch
|
blob
|
history
diff --git
a/packaging/elfutils.spec
b/packaging/elfutils.spec
index
f91e3f0
..
54765ae
100644
(file)
--- a/
packaging/elfutils.spec
+++ b/
packaging/elfutils.spec
@@
-117,7
+117,7
@@
to develop applications that require these.
%setup -q -n elfutils-%{version}
%build
-modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.change
d
")"
+modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.change
s
")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +