[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
cleaning build dir
- From: Lars Wilke <lars_wilke web de>
- To: Rpm-list redhat com
- Cc:
- Subject: cleaning build dir
- Date: Tue, 22 Aug 2006 17:45:00 +0200
Hi,
i am wondering atm about the prefered way to cleanup the build dir,
not the build root!
Many tutorials out there suggest something like this in the %clean
section
test "X$RPM_BUIlD_ROOT" != "X/" && rm -rf "$RPM_BUILD_ROOT"
The rpmbuild command provides the --clean flag to delete the build dir
after finishing.
But i could also use something like this in the clean section
test "X$RPM_BUIlD_ROOT" != "X/" && rm -rf "$RPM_BUILD_ROOT"
if test "X$RPM_BUILD_DIR" != "x/"; then
cd "$RPM_BUILD_DIR"
rm -rf "${RPM_PACKAGE_NAME}-$RPM_PACKAGE_VERSION"
fi
which would delete the build dir and the build root.
So what is the prefered way to do it. IIUC the %clean section is exactly
for this. Cleaning up after build.
wondering
--lars
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]