From 5fe8158fe577eaf64f7689b3cfc175fbc2148550 Mon Sep 17 00:00:00 2001
From: Simon Rose <simon.rose@ess.eu>
Date: Thu, 3 Jun 2021 15:36:06 +0200
Subject: [PATCH] Added check for old-style patches

---
 configure/modules/RULES_PATCH | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure/modules/RULES_PATCH b/configure/modules/RULES_PATCH
index 55d70ab0..915f9fc3 100644
--- a/configure/modules/RULES_PATCH
+++ b/configure/modules/RULES_PATCH
@@ -1,12 +1,16 @@
 
 .PHONY: patch patchrevert
 
+.PHONY: check_for_old_patches
+check_for_old_patches:
+	$(if $(wildcard $(TOP)/patch/Site/$(E3_MODULE_VERSION_ORIG)-*.p0.patch),$(warning Warning: old-style patches detected. Please move them to patch/Site/$$E3_MODULE_VERSION.))
+
 
 ## Apply Patch Files 
-patch:
+patch: check_for_old_patches
 	$(QUIET) $(call patch_site)
 
 ## Revert Patch Files 
-patchrevert:
+patchrevert: check_for_old_patches
 	$(QUIET) $(call patch_revert_site)
 
-- 
GitLab