mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
refactor: drop .keep placeholder files in favor of explicit mkdir
BUILD_RPM now creates the rpmbuild _topdir subdirs (BUILD/RPMS/SRPMS/
SOURCES/SPECS) itself, so the 11 tracked .keep placeholders (downloads,
output, el*/{BUILD,RPMS,SRPMS}) are no longer needed; output/ and
downloads/ were already created by compile.sh/pullsrc.sh.
This commit is contained in:
@@ -132,6 +132,8 @@ BUILD_RPM() {
|
|||||||
&& RPMBUILDOPTS+=('--define' "dist .$(rpm -q glibc | rev | cut -d. -f2 | rev)")
|
&& RPMBUILDOPTS+=('--define' "dist .$(rpm -q glibc | rev | cut -d. -f2 | rev)")
|
||||||
|
|
||||||
pushd $rpmtopdir
|
pushd $rpmtopdir
|
||||||
|
# ensure the rpmbuild _topdir tree exists (fresh clone has no empty dirs)
|
||||||
|
mkdir -p BUILD RPMS SRPMS SOURCES SPECS
|
||||||
RPMBUILDOPTS+=('--define' "_topdir $PWD")
|
RPMBUILDOPTS+=('--define' "_topdir $PWD")
|
||||||
for fn in "${SOURCES[@]}"; do
|
for fn in "${SOURCES[@]}"; do
|
||||||
CHECKEXISTS "$fn" \
|
CHECKEXISTS "$fn" \
|
||||||
|
|||||||
Reference in New Issue
Block a user