]> git.donarmstrong.com Git - lilypond.git/commitdiff
Change all occurences of "echo -n" to "printf" for portability
authorCarl <c_sorensen@byu.edu>
Sat, 24 Mar 2012 02:16:43 +0000 (20:16 -0600)
committerCarl <c_sorensen@byu.edu>
Tue, 27 Mar 2012 04:21:10 +0000 (22:21 -0600)
mf/GNUmakefile
scripts/build/install-info-html.sh
smart-autogen.sh
smart-configure.sh
stepmake/bin/stepmakeise.sh

index ad397159c382974c600e5a4746fcd57bf4916dc9..532a25ec7bad31fea18211e9faa15a82002d6b05 100644 (file)
@@ -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)) > $@
 
index a116cd93d0a748e1061f5a8d0f1df6d59f2231fb..dafd629fc2358e976a8943e0f502f7da28c138c0 100644 (file)
@@ -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 <<EOF
index 92ef928ca053ff68a2571c5a617b31c9cb534411..6dcb3ab37c4dec284fd812458a0a89d63dc94f06 100755 (executable)
@@ -13,6 +13,5 @@ fi
 
 set -e
 ${srcdir}/autogen.sh "$@"
-echo -n $AUTOGEN_INPUT_CHECKSUM > $CHECKSUM_FILE 
-
+printf "%s" $AUTOGEN_INPUT_CHECKSUM > $CHECKSUM_FILE
 
index f82c0857451709998bd7661a2598c478f23737fa..d55947f08c2f07756d1494beeaea7fc513c64a6e 100755 (executable)
@@ -16,8 +16,5 @@ fi
 
 set -e
 $srcdir/configure "$@"
-echo -n $CONFIGURE_CHECKSUM > $CONFIGURE_CHECKSUM_FILE
-
-
-
+printf "%s" $CONFIGURE_CHECKSUM > $CONFIGURE_CHECKSUM_FILE
 
index 4119be3df53b1740db51ad307022b0ffa84e1372..e2ae7cfe8ba3602bff7adea573a0afa3ff1a845e 100755 (executable)
@@ -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