From 2a80b175408a4dce05112ca19abf27134ee10f1b Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Tue, 21 Feb 2017 14:35:49 -0600 Subject: [PATCH] The following changes were made to Makefile: * Added BRIEF * Moved to new version scheme * Corrected patch loop --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ddf36e8..63bddb3 100644 --- a/Makefile +++ b/Makefile @@ -11,15 +11,16 @@ DEPENDS = glibc ARCH = x86_64 URL = http://www.gnu.org/software/findutils/ +BRIEF = Directory searching utilities DESC = The GNU Find Utilities are the basic directory searching utilities of \ the GNU operating system. -SNAPVER = sr1 +SNAPVER = 2 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') PATCHDIR := $(PWD)/SRC/patches -VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER) +VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER) include /usr/share/snap/Makefile.snaplinux @@ -38,9 +39,10 @@ $(SRCDIR)/configure: $(ARCHIVE) fi $(SRCDIR)/config.log: $(SRCDIR)/configure - @if [ -f $(PATCHDIR)/*.patch ]; then \ - cd $(SRCDIR) && cat $(PATCHDIR)/*.patch|patch --verbose -Np1; \ - fi + @cd $(SRCDIR) && \ + for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \ + patch --verbose -Np1 -i $$patch; \ + done @cd $(SRCDIR); \ ./configure \ --prefix=/usr \