aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2016-02-18 09:02:35 +0800
committerjkim <jkim@FreeBSD.org>2016-02-18 09:02:35 +0800
commitb0eb3a8a363646f7e7aece25165ccf3764de2836 (patch)
treef546556309cc9a002f17995f9b86509de59bf863
parent409fcb1003beef69cb0a27299ad1de4eabe9369b (diff)
downloadfreebsd-ports-gnome-b0eb3a8a363646f7e7aece25165ccf3764de2836.tar.gz
freebsd-ports-gnome-b0eb3a8a363646f7e7aece25165ccf3764de2836.tar.zst
freebsd-ports-gnome-b0eb3a8a363646f7e7aece25165ccf3764de2836.zip
Simplify the previous patch.
-rw-r--r--sysutils/acpica-tools/files/patch-generate_unix_iasl_Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysutils/acpica-tools/files/patch-generate_unix_iasl_Makefile b/sysutils/acpica-tools/files/patch-generate_unix_iasl_Makefile
index 4bb419e2bcf0..51fd3c8adab6 100644
--- a/sysutils/acpica-tools/files/patch-generate_unix_iasl_Makefile
+++ b/sysutils/acpica-tools/files/patch-generate_unix_iasl_Makefile
@@ -7,12 +7,13 @@
- _f=`echo $(1) | tr '[:upper:]' '[:lower:]'` &&\
- _d=`mktemp -d $(OBJDIR)/$$_f.XXXXXX` &&\
- _t=`basename $(3)` &&\
-+ _f=$(notdir $(basename $(2))) &&\
-+ _d=$$(mktemp -d $(3).XXXXXX) &&\
- $(YACC) $(YFLAGS) -p$(1) -o$$_d/$$_f.c -d $(2) &&\
+- $(YACC) $(YFLAGS) -p$(1) -o$$_d/$$_f.c -d $(2) &&\
- mv $$_d/$$_f.$${_t\#\#*.} $(3);\
- test -d $$_d && rm -fr $$_d
-+ mv $$_d/$$_f$(suffix $(3)) $(3) &&\
++ _d=$$(mktemp -d $(3).XXXXXX) &&\
++ _t=$$_d/$(notdir $(basename $(2))) &&\
++ $(YACC) $(YFLAGS) -p$(1) -o$$_t.c -d $(2) &&\
++ mv $$_t$(suffix $(3)) $(3) &&\
+ rm -fr $$_d
#