take date from spec file
authorAnas Nashif <anas.nashif@intel.com>
Thu, 8 Nov 2012 02:24:44 +0000 (18:24 -0800)
committerChanho Park <chanho61.park@samsung.com>
Wed, 26 Nov 2014 14:33:39 +0000 (23:33 +0900)
packaging/elfutils.changes [new file with mode: 0644]
packaging/elfutils.spec

diff --git a/packaging/elfutils.changes b/packaging/elfutils.changes
new file mode 100644 (file)
index 0000000..2889c8a
--- /dev/null
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Tue Sep  4 13:05:25 UTC 2012 - anas.nashif@intel.com
+
+- Updated
index 27edee0..f91e3f0 100644 (file)
@@ -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" {} +