diff options
author | Cem Keylan <cem@ckyln.com> | 2020-08-25 03:52:24 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-08-25 03:52:24 +0300 |
commit | 4b4399c0487e225ca95112eab014753758713891 (patch) | |
tree | 56e45e1d6f81b5f7d58d8a39fc265eceb27cb041 /extra/rc/build | |
parent | 3e574d6284df5bf4dd6f9d2f3c456b73d4473e93 (diff) | |
download | repository-4b4399c0487e225ca95112eab014753758713891.tar.gz |
rc: add new package at 50b729e65d
Diffstat (limited to 'extra/rc/build')
-rwxr-xr-x | extra/rc/build | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/rc/build b/extra/rc/build new file mode 100755 index 00000000..caaeb043 --- /dev/null +++ b/extra/rc/build @@ -0,0 +1,33 @@ +#!/bin/sh -e + +for patch in *.patch; do + patch -p1 < "$patch" +done + +# Change the location of rcmain to the /etc directory. +sed -i 's|/lib/rcmain|/etc/rcmain|;s|PREFIX||' unix.c + +mkdir -p "$1/usr/bin" +"${CC:-cc}" -o "$1/usr/bin/rc" \ + $CFLAGS -static \ + code.c \ + exec.c \ + getflags.c \ + glob.c \ + here.c \ + io.c \ + lex.c \ + pcmd.c \ + pfnc.c \ + simple.c \ + subr.c \ + trap.c \ + tree.c \ + var.c \ + y.tab.c \ + unix.c \ + havefork.c \ + prompt-null.c + +install -Dm644 rc.1 "$1/usr/share/man/man1/rc.1" +install -Dm644 rcmain.unix "$1/etc/rcmain" |