From: Anas Nashif Date: Thu, 8 Nov 2012 02:24:44 +0000 (-0800) Subject: take date from spec file X-Git-Tag: accepted/tizen/base/20151223.052249~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40a2d9f9690cd3427fdb62a236db66bb78ed4159;p=platform%2Fupstream%2Felfutils.git take date from spec file --- diff --git a/packaging/elfutils.changes b/packaging/elfutils.changes new file mode 100644 index 0000000..2889c8a --- /dev/null +++ b/packaging/elfutils.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Sep 4 13:05:25 UTC 2012 - anas.nashif@intel.com + +- Updated diff --git a/packaging/elfutils.spec b/packaging/elfutils.spec index 27edee0..f91e3f0 100644 --- 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}.spec")" +modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changed")" 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" {} +