mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-21 19:51:09 +00:00
build_rpm now works outside of ${srcdir} and make clean cleans up afterwards
This commit is contained in:
parent
df4ecf260b
commit
599f05c84b
2 changed files with 5 additions and 7 deletions
|
@ -1 +1,2 @@
|
||||||
EXTRA_DIST = build_rpm.in nuq.spec.in
|
EXTRA_DIST = build_rpm.in nuq.spec.in
|
||||||
|
CLEANFILES = -r BUILD RPMS SOURCES SPECS SRPMS rpmmacros
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
#!/bin/sh -x
|
#!/bin/sh -ex
|
||||||
|
|
||||||
version=@VERSION@
|
version=@VERSION@
|
||||||
temp_dir=/var/tmp
|
temp_dir=/var/tmp
|
||||||
srcdir=@srcdir@
|
srcdir=@srcdir@
|
||||||
if [ "$srcdir" = "." ]; then
|
|
||||||
srcdir=..
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf BUILD SPECS RPMS SOURCES SRPMS
|
rm -rf BUILD SPECS RPMS SOURCES SRPMS
|
||||||
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
||||||
(cd ${srcdir}; make dist)
|
(cd ..; make dist)
|
||||||
mv ${srcdir}/nuq-${version}.tar.gz SOURCES
|
(cd SOURCES; ln -s ../../nuq-${version}.tar.gz .)
|
||||||
cat > rpmmacros <<EOF
|
cat > rpmmacros <<EOF
|
||||||
%_topdir $PWD
|
%_topdir $PWD
|
||||||
EOF
|
EOF
|
||||||
rpm -ba nuq.spec --rcfile rpmrc
|
rpm -ba nuq.spec --rcfile ${srcdir}/rpmrc
|
||||||
|
|
Loading…
Reference in a new issue