[asterisk-commits] seanbright: trunk r146555 - /trunk/utils/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Oct 5 19:21:49 CDT 2008


Author: seanbright
Date: Sun Oct  5 19:21:49 2008
New Revision: 146555

URL: http://svn.digium.com/view/asterisk?view=rev&rev=146555
Log:
Quote arguments to cp so we can handle spaces in our paths.

Modified:
    trunk/utils/Makefile

Modified: trunk/utils/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/utils/Makefile?view=diff&rev=146555&r1=146554&r2=146555
==============================================================================
--- trunk/utils/Makefile (original)
+++ trunk/utils/Makefile Sun Oct  5 19:21:49 2008
@@ -91,38 +91,38 @@
 stereorize: LIBS+=-lm
 
 hashtab.c: $(ASTTOPDIR)/main/hashtab.c
-	@cp $< $@
+	@cp "$<" "$@"
 hashtab.o: ASTCFLAGS+=-DSTANDALONE
 
 strcompat.c: $(ASTTOPDIR)/main/strcompat.c
-	@cp $< $@
+	@cp "$<" "$@"
 strcompat.o: ASTCFLAGS+=-DSTANDALONE
 
 pval.c: $(ASTTOPDIR)/res/ael/pval.c
-	@cp $< $@
+	@cp "$<" "$@"
 pval.o : ASTCFLAGS+=-DSTANDALONE
 
 ast_expr2.c: $(ASTTOPDIR)/main/ast_expr2.c
-	@cp $< $@
+	@cp "$<" "$@"
 ast_expr2.o: ASTCFLAGS+=-DSTANDALONE
 
 ast_expr2f.c: $(ASTTOPDIR)/main/ast_expr2f.c
-	@cp $< $@
+	@cp "$<" "$@"
 ast_expr2f.o: ASTCFLAGS+=-DSTANDALONE -I$(ASTTOPDIR)/main -Wno-unused
 
 check_expr: check_expr.o ast_expr2.o ast_expr2f.o strcompat.o threadstorage.o clicompat.o
 check_expr.o: ASTCFLAGS+=-DSTANDALONE
 
 aelbison.c: $(ASTTOPDIR)/res/ael/ael.tab.c
-	@cp $< $@
+	@cp "$<" "$@"
 aelbison.o: ASTCFLAGS+=-I$(ASTTOPDIR)/res/ael  -DYYENABLE_NLS=0 -DSTANDALONE
 
 pbx_ael.c: $(ASTTOPDIR)/pbx/pbx_ael.c
-	@cp $< $@
+	@cp "$<" "$@"
 pbx_ael.o: ASTCFLAGS+=-DSTANDALONE
 
 aelparse.c: $(ASTTOPDIR)/res/ael/ael_lex.c
-	@cp $< $@
+	@cp "$<" "$@"
 
 ael_main.o: ASTCFLAGS+=-DSTANDALONE
 
@@ -130,19 +130,19 @@
 aelparse: aelparse.o aelbison.o pbx_ael.o hashtab.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o pval.o extconf.o
 
 astobj2.c: $(ASTTOPDIR)/main/astobj2.c
-	@cp $< $@
+	@cp "$<" "$@"
 astobj2.o: ASTCFLAGS+=-DSTANDALONE
 
 utils.c: $(ASTTOPDIR)/main/utils.c
-	@cp $< $@
+	@cp "$<" "$@"
 utils.o: ASTCFLAGS+=-DSTANDALONE
 
 sha1.c: $(ASTTOPDIR)/main/sha1.c
-	@cp $< $@
+	@cp "$<" "$@"
 sha1.o: ASTCFLAGS+=-DSTANDALONE
 
 threadstorage.c: $(ASTTOPDIR)/main/threadstorage.c
-	@cp $< $@
+	@cp "$<" "$@"
 threadstorage.o: ASTCFLAGS+=-DSTANDALONE
 
 hashtest2.o: ASTCFLAGS+=-O0 -DSTANDALONE




More information about the asterisk-commits mailing list