From 599f05c84b636f014d3512004ad6f4d6abdaf0a9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 31 Aug 2000 00:18:35 +0000 Subject: [PATCH] build_rpm now works outside of ${srcdir} and make clean cleans up afterwards --- RPM/Makefile.am | 1 + RPM/build_rpm.in | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/RPM/Makefile.am b/RPM/Makefile.am index 7157204..2c7ca03 100644 --- a/RPM/Makefile.am +++ b/RPM/Makefile.am @@ -1 +1,2 @@ EXTRA_DIST = build_rpm.in nuq.spec.in +CLEANFILES = -r BUILD RPMS SOURCES SPECS SRPMS rpmmacros diff --git a/RPM/build_rpm.in b/RPM/build_rpm.in index 27c3856..8dde53a 100644 --- a/RPM/build_rpm.in +++ b/RPM/build_rpm.in @@ -1,17 +1,14 @@ -#!/bin/sh -x +#!/bin/sh -ex version=@VERSION@ temp_dir=/var/tmp srcdir=@srcdir@ -if [ "$srcdir" = "." ]; then - srcdir=.. -fi rm -rf BUILD SPECS RPMS SOURCES SRPMS mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS -(cd ${srcdir}; make dist) -mv ${srcdir}/nuq-${version}.tar.gz SOURCES +(cd ..; make dist) +(cd SOURCES; ln -s ../../nuq-${version}.tar.gz .) cat > rpmmacros <