Files
ceph/make-srpm.sh
John Mulligan 544d8ab5eb make-srpm.sh: don't shell out redundantly to pwd
Just something that annoyed me while reading the script.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2025-08-20 11:23:46 -04:00

12 lines
291 B
Bash
Executable File

#!/bin/sh
#
# Create a SRPM which can be used to build Ceph
#
# ./make-srpm.sh <version>
# rpmbuild --rebuild /tmp/ceph/ceph-<version>-0.el7.centos.src.rpm
#
test -f "ceph-$1.tar.bz2" || ./make-dist $1
rpmbuild -D"_sourcedir ${PWD}" -D"_specdir ${PWD}" -D"_srcrpmdir ${PWD}" -bs ceph.spec