From: Maxim Mamontov Date: Thu, 1 Dec 2011 11:23:07 +0000 (+0200) Subject: More correct way to use printf X-Git-Tag: 2.408~39 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/789e1567f735cb92cf574c74f792705445de2fd7 More correct way to use printf --- diff --git a/projects/convertor/Makefile b/projects/convertor/Makefile index c1d9ff86..4417e970 100644 --- a/projects/convertor/Makefile +++ b/projects/convertor/Makefile @@ -71,5 +71,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/rlm_stg/Makefile b/projects/rlm_stg/Makefile index 20a79a4a..da25f599 100644 --- a/projects/rlm_stg/Makefile +++ b/projects/rlm_stg/Makefile @@ -77,5 +77,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/rscriptd/Makefile b/projects/rscriptd/Makefile index 2666dc37..581b3275 100644 --- a/projects/rscriptd/Makefile +++ b/projects/rscriptd/Makefile @@ -88,5 +88,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/sgauth/Makefile b/projects/sgauth/Makefile index 2ce0a1d5..5565199b 100644 --- a/projects/sgauth/Makefile +++ b/projects/sgauth/Makefile @@ -90,5 +90,5 @@ deps: $(SRCS) ../../Makefile.conf sgauth.css ./make_css.sh for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/sgauthstress/Makefile b/projects/sgauthstress/Makefile index 67eaf5fc..f688cffa 100644 --- a/projects/sgauthstress/Makefile +++ b/projects/sgauthstress/Makefile @@ -67,5 +67,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/sgconf/Makefile b/projects/sgconf/Makefile index ed472f9c..0697b329 100644 --- a/projects/sgconf/Makefile +++ b/projects/sgconf/Makefile @@ -88,5 +88,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/sgconf_xml/Makefile b/projects/sgconf_xml/Makefile index 02571697..aefe7c12 100644 --- a/projects/sgconf_xml/Makefile +++ b/projects/sgconf_xml/Makefile @@ -88,5 +88,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/stargazer/Makefile b/projects/stargazer/Makefile index 361347df..89326541 100644 --- a/projects/stargazer/Makefile +++ b/projects/stargazer/Makefile @@ -139,5 +139,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done diff --git a/projects/stargazer/plugins/Makefile.in b/projects/stargazer/plugins/Makefile.in index 9ccb3ef9..17e10ace 100644 --- a/projects/stargazer/plugins/Makefile.in +++ b/projects/stargazer/plugins/Makefile.in @@ -46,9 +46,9 @@ deps: $(SRCS) ../../../../../Makefile.conf if [ $$? -eq 0 ];\ then\ echo "`$(CC) $(CFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile ../../../../../Makefile.conf" >> deps ;\ - printf '\t$$(CC) -c $$< $(CFLAGS) $(SEARCH_DIRS) $(DEFS)\n' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\ else\ echo "`$(CXX) $(CXXFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile ../../../../../Makefile.conf" >> deps ;\ - printf '\t$$(CXX) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)\n' >> deps ;\ + printf '%b\n' '\t$$(CXX) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\ fi;\ done diff --git a/stglibs/Makefile.in b/stglibs/Makefile.in index def43a0c..a3184974 100644 --- a/stglibs/Makefile.in +++ b/stglibs/Makefile.in @@ -61,9 +61,9 @@ deps: $(SRCS) ../../Makefile.conf if [ $$? -eq 0 ];\ then\ echo "`$(CC) $(CFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - printf '\t$$(CC) $(CFLAGS) -c $$<\n' >> deps ;\ + printf '%b\n' '\t$$(CC) $(CFLAGS) -c $$<' >> deps ;\ else\ echo "`$(CXX) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - printf '\t$$(CXX) $(CXXFLAGS) -c $$<\n' >> deps ;\ + printf '%b\n' '\t$$(CXX) $(CXXFLAGS) -c $$<' >> deps ;\ fi;\ done