diff options
author | marc <devnull@localhost> | 1998-01-25 17:03:30 +0000 |
---|---|---|
committer | marc <devnull@localhost> | 1998-01-25 17:03:30 +0000 |
commit | 2ae55b71cba7599bf5441e3f97874e76f26c3ba7 (patch) | |
tree | 475b5cfba2dc0b3649b8a36b680444030e2b2c90 /build/build.c | |
parent | 79fc5363ded0aab99c4489dc4a44f721a1122d5d (diff) | |
download | librpm-tizen-2ae55b71cba7599bf5441e3f97874e76f26c3ba7.tar.gz librpm-tizen-2ae55b71cba7599bf5441e3f97874e76f26c3ba7.tar.bz2 librpm-tizen-2ae55b71cba7599bf5441e3f97874e76f26c3ba7.zip |
New rpmrc entry BuildShell can used to set the shell used for build scripts.
Default is /bin/sh.
CVS patchset: 1977
CVS date: 1998/01/25 17:03:30
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/build.c b/build/build.c index c7c2339f2..1ba91b7f7 100644 --- a/build/build.c +++ b/build/build.c @@ -99,6 +99,7 @@ int doScript(Spec spec, int what, char *name, StringBuf sb, int test) char *scriptName; int pid; int status; + char *buildShell; switch (what) { case RPMBUILD_PREP: @@ -164,7 +165,8 @@ int doScript(Spec spec, int what, char *name, StringBuf sb, int test) rpmMessage(RPMMESS_NORMAL, "Executing: %s\n", name); if (!(pid = fork())) { - execl("/bin/sh", "/bin/sh", "-e", scriptName, scriptName, NULL); + buildShell = rpmGetVar(RPMVAR_BUILDSHELL); + execl(buildShell, buildShell, "-e", scriptName, scriptName, NULL); rpmError(RPMERR_SCRIPT, "Exec of %s failed (%s)", scriptName, name); FREE(scriptName); |