[ksh/f17] add support for direct execution of compiled scripts

Michal Hlavinka mhlavink at fedoraproject.org
Thu Sep 13 14:05:05 UTC 2012


commit 66b4b702447d7093e9eeee7c21f2c85f40aa34de
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Thu Sep 13 16:04:58 2012 +0200

    add support for direct execution of compiled scripts

 ksh.spec     |   10 ++++++++--
 kshcomp.conf |    1 +
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ksh.spec b/ksh.spec
index 5b50780..4334ad0 100644
--- a/ksh.spec
+++ b/ksh.spec
@@ -6,9 +6,10 @@ URL:          http://www.kornshell.com/
 Group:        System Environment/Shells
 License:      EPL
 Version:      20120801
-Release:      1%{?dist}
+Release:      2%{?dist}
 Source0:      http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
 Source1:      http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
+Source2:      kshcomp.conf
 Source3:      kshrc.rhs
 Source4:      dotkshrc
 #expected results of test suite
@@ -63,6 +64,7 @@ install -c -m 644 arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
 install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.kshrc
 install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/kshrc
+install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/binfmt.d/kshcomp.conf
 
 %check
 %if 0%{?rhel} > 6
@@ -121,11 +123,15 @@ fi
 %{_mandir}/man1/*
 %config(noreplace) %{_sysconfdir}/skel/.kshrc
 %config(noreplace) %{_sysconfdir}/kshrc
+%config(noreplace) %{_sysconfdir}/binfmt.d/kshcomp.conf
 
 %clean
-    rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Thu Sep 13 2012 Michal Hlavinka <mhlavink at redhat.com> - 20120801-1
+- add support for direct execution of compiled scripts
+
 * Wed Aug 08 2012 Michal Hlavinka <mhlavink at redhat.com> - 20120801-1
 - ksh updated to 2012-08-01
 
diff --git a/kshcomp.conf b/kshcomp.conf
new file mode 100644
index 0000000..b795f5b
--- /dev/null
+++ b/kshcomp.conf
@@ -0,0 +1 @@
+':kshcomp:M::\x0b\x13\x08::/bin/ksh:


More information about the scm-commits mailing list