Install sample eppic scripts in the documentation directory

Signed-off-by: Aruna Balakrishnaiah <[email protected]>
---
 Makefile          |    2 ++
 makedumpfile.spec |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 2f4845c..6ee2da5 100644
--- a/Makefile
+++ b/Makefile
@@ -91,3 +91,5 @@ install:
        install -m 644 -t ${DESTDIR}/usr/share/man/man8 makedumpfile.8.gz
        install -m 644 -t ${DESTDIR}/usr/share/man/man5 makedumpfile.conf.5.gz
        install -m 644 -D makedumpfile.conf 
${DESTDIR}/etc/makedumpfile.conf.sample
+       mkdir -p ${DESTDIR}/usr/share/makedumpfile-${VERSION}/eppic_scripts
+       install -m 644 -t 
${DESTDIR}/usr/share/makedumpfile-${VERSION}/eppic_scripts/ eppic_scripts/*
diff --git a/makedumpfile.spec b/makedumpfile.spec
index c433730..f076bb6 100644
--- a/makedumpfile.spec
+++ b/makedumpfile.spec
@@ -28,6 +28,7 @@ mkdir -p %{buildroot}/usr/sbin
 mkdir -p %{buildroot}/etc
 mkdir -p %{buildroot}/usr/share/man/man5
 mkdir -p %{buildroot}/usr/share/man/man8
+mkdir -p %{buildroot}/usr/share/%{name}-%{version}/eppic-scripts/
 make install DESTDIR=%{buildroot}
 
 %clean
@@ -39,6 +40,7 @@ rm -rf %{buildroot}
 /usr/sbin/makedumpfile-R.pl
 /usr/share/man/man5/makedumpfile.conf.5.gz
 /usr/share/man/man8/makedumpfile.8.gz
+/usr/share/%{name}-%{version}/eppic_scripts/
 
 %changelog
 * Wed Dec 18 2013 Atsushi Kumagai <[email protected]>


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to