From 6be8483f86d6af135c5f41298b5ade0ba93e8f93 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 29 Aug 2024 06:33:38 +0000 Subject: automatic import of openEuler-rpm-config --- brp-remove-info-dir | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 brp-remove-info-dir (limited to 'brp-remove-info-dir') diff --git a/brp-remove-info-dir b/brp-remove-info-dir new file mode 100644 index 0000000..5961830 --- /dev/null +++ b/brp-remove-info-dir @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ -z "$RPM_BUILD_ROOT" ]; then + echo "No build root defined" >&2 + exit 1 +fi + +if [ ! -d "$RPM_BUILD_ROOT" ]; then + echo "Invalid build root" >&2 + exit 1 +fi + +INFODIR=`rpm --eval %{_infodir}/dir` + +dir="$RPM_BUILD_ROOT/$INFODIR" + +if [ -f $dir -a ! -L $dir ]; then + rm -f $dir +fi -- cgit v1.2.3