summaryrefslogtreecommitdiff
path: root/build/build.h
diff options
context:
space:
mode:
authorewt <devnull@localhost>1998-01-12 21:31:29 +0000
committerewt <devnull@localhost>1998-01-12 21:31:29 +0000
commit757e50ffc827297e36f793cf79ddc471878f6d0b (patch)
treedc29d9ef04a9462998bdfaaa3ee7054585fe01c8 /build/build.h
parentec07f9df959c911c60727ba68c455f4ff20497bf (diff)
downloadlibrpm-tizen-757e50ffc827297e36f793cf79ddc471878f6d0b.tar.gz
librpm-tizen-757e50ffc827297e36f793cf79ddc471878f6d0b.tar.bz2
librpm-tizen-757e50ffc827297e36f793cf79ddc471878f6d0b.zip
merged in Marc's new build code
CVS patchset: 1956 CVS date: 1998/01/12 21:31:29
Diffstat (limited to 'build/build.h')
-rw-r--r--build/build.h33
1 files changed, 12 insertions, 21 deletions
diff --git a/build/build.h b/build/build.h
index aa984a5f3..62c27fe94 100644
--- a/build/build.h
+++ b/build/build.h
@@ -1,25 +1,16 @@
-#ifndef _BUILD_H_
-#define _BUILD_H_
-
#include "spec.h"
-int doBuild(Spec s, int flags, char *passPhrase);
-int execPrep(Spec s, int really_exec, int test);
-int execBuild(Spec s, int test);
-int execInstall(Spec s, int test);
-int execClean(Spec s);
-int verifyList(Spec s);
-
-extern char build_subdir[1024];
+#define RPMBUILD_PREP (1 << 0)
+#define RPMBUILD_BUILD (1 << 1)
+#define RPMBUILD_INSTALL (1 << 2)
+#define RPMBUILD_CLEAN (1 << 3)
+#define RPMBUILD_FILECHECK (1 << 4)
+#define RPMBUILD_PACKAGESOURCE (1 << 5)
+#define RPMBUILD_PACKAGEBINARY (1 << 6)
+#define RPMBUILD_RMSOURCE (1 << 7)
+#define RPMBUILD_RMBUILD (1 << 8)
+#define RPMBUILD_STRINGBUF (1 << 9) /* only for doScript() */
-#define RPMBUILD_PREP 1
-#define RPMBUILD_BUILD (1 << 1)
-#define RPMBUILD_INSTALL (1 << 2)
-#define RPMBUILD_BINARY (1 << 3)
-#define RPMBUILD_SOURCE (1 << 4)
-#define RPMBUILD_SWEEP (1 << 5)
-#define RPMBUILD_LIST (1 << 6)
-#define RPMBUILD_RMSOURCE (1 << 7)
-#define RPMBUILD_TEST (1 << 8)
+int buildSpec(Spec spec, int what, int test);
-#endif _BUILD_H_
+int doScript(Spec spec, int what, char *name, StringBuf sb, int test);