From 83fa1c28f07bd9be575c726c55a4a74cada109d4 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 1 Jul 2006 18:27:19 +0000 Subject: [PATCH] Make the default patch prefix configurable. --- buildpkg.functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildpkg.functions b/buildpkg.functions index ff71416..edb08f1 100644 --- a/buildpkg.functions +++ b/buildpkg.functions @@ -152,6 +152,9 @@ no_configure=0 # When building perl modules should we run make test? maketest=0 +# When patching use -p1 as default prefix +patch_prefix="-p1" + # Distfiles should be named like this # --.sb--- # ie: libmad-0.14.2b-1.sb-sol5.8-sparcv9-local @@ -638,7 +641,7 @@ generic_prep() # done while [ $i -lt $numpatch ] do - patch $i -p1 + patch $i $patch_prefix let i=i+1 done fi