From 82a0ba550fd5a494a7f3241c100610d2868d49a5 Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 29 Jan 1996 03:32:22 +0000 Subject: [PATCH] added RPM_PACKAGE_NAME var to all scripts do special %doc install after %install CVS patchset: 227 CVS date: 1996/01/29 03:32:22 --- build/build.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/build.c b/build/build.c index 9906c3a..f959d68 100644 --- a/build/build.c +++ b/build/build.c @@ -77,6 +77,7 @@ struct Script *openScript(Spec spec, int builddir) fprintf(script->file, "RPM_PACKAGE_VERSION=\"%s\"\n", s); getEntry(main_package->header, RPMTAG_RELEASE, &foo, (void **)&s, &foo); fprintf(script->file, "RPM_PACKAGE_RELEASE=\"%s\"\n", s); + fprintf(script->file, "RPM_PACKAGE_NAME=\"%s\"\n", spec->name); fprintf(script->file, "\ncd %s\n\n", getVar(RPMVAR_BUILDDIR)); if (builddir) { @@ -556,7 +557,12 @@ int execBuild(Spec s) int execInstall(Spec s) { - return execPart(s, getStringBuf(s->install), "%install", 1); + int res; + + if ((res = execPart(s, getStringBuf(s->install), "%install", 1))) { + return res; + } + return execPart(s, getStringBuf(s->doc), "special doc", 1); } int execClean(Spec s) -- 2.7.4