From d68770f6939ab160ff27ec4e65ccc88cd3677bd0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 18 Sep 2024 07:06:26 +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