From 8cd5d25aa619cffefed067147b3062051f1b7b08 Mon Sep 17 00:00:00 2001 From: Carl Date: Fri, 23 Mar 2012 20:16:43 -0600 Subject: [PATCH] Change all occurences of "echo -n" to "printf" for portability --- mf/GNUmakefile | 2 +- scripts/build/install-info-html.sh | 2 +- smart-autogen.sh | 3 +-- smart-configure.sh | 5 +---- stepmake/bin/stepmakeise.sh | 8 ++++---- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/mf/GNUmakefile b/mf/GNUmakefile index ad397159c3..532a25ec7b 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -153,7 +153,7 @@ $(outdir)/emmentaler-brace.otf\ $(outdir)/emmentaler-brace.woff: $(BRACES:%=$(outdir)/feta-braces-%.pfb) $(outdir)/emmentaler-brace.fontname: - echo -n 'emmentaler-brace' > $@ + printf 'emmentaler-brace' > $@ $(outdir)/emmentaler-brace.subfonts: echo $(subst .mf,,$(call src-wildcard,feta-braces-[a-z].mf)) > $@ diff --git a/scripts/build/install-info-html.sh b/scripts/build/install-info-html.sh index a116cd93d0..dafd629fc2 100644 --- a/scripts/build/install-info-html.sh +++ b/scripts/build/install-info-html.sh @@ -126,7 +126,7 @@ fi index_file=$index_dir/index.html rm -f $index_file -echo -n "$name: Writing index: $index_file..." +printf "%s: Writing index: %s..." "$name" "$index_file" # head cat >> $index_file < $CHECKSUM_FILE - +printf "%s" $AUTOGEN_INPUT_CHECKSUM > $CHECKSUM_FILE diff --git a/smart-configure.sh b/smart-configure.sh index f82c085745..d55947f08c 100755 --- a/smart-configure.sh +++ b/smart-configure.sh @@ -16,8 +16,5 @@ fi set -e $srcdir/configure "$@" -echo -n $CONFIGURE_CHECKSUM > $CONFIGURE_CHECKSUM_FILE - - - +printf "%s" $CONFIGURE_CHECKSUM > $CONFIGURE_CHECKSUM_FILE diff --git a/stepmake/bin/stepmakeise.sh b/stepmake/bin/stepmakeise.sh index 4119be3df5..e2ae7cfe8b 100755 --- a/stepmake/bin/stepmakeise.sh +++ b/stepmake/bin/stepmakeise.sh @@ -34,7 +34,7 @@ if [ -r stepmake ]; then exit 1 fi echo "Stepmake found" - echo -n "Checking version..." + printf "Checking version..." VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL # urg version=$VERSION @@ -49,7 +49,7 @@ fi if [ true ]; then # urg - echo -n "Checking latest..." + printf "Checking latest..." if [ ! -r $reldir ]; then echo "$name: huh 2?" exit 1 @@ -64,7 +64,7 @@ if [ true ]; then echo "relax, StepMake is up to date" exit 0 fi - echo -n "Updating StepMake..." + printf "Updating StepMake..." (set +x; rm -rf stepmake; tar xzf $reldir/stepmake-$LATEST.tar.gz; mv stepmake-$LATEST stepmake) echo "ok" fi @@ -84,7 +84,7 @@ for i in $files; do fi done -echo -n "Stepmakeising..." +printf "Stepmakeising..." for i in $files; do cp -prv stepmake/$i . done -- 2.39.2