From 23d84d1b553d4e820b5a3ce0d388247ee670e20c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Aug 2012 18:27:20 +0200 Subject: portability: [[ is not recongised by dash --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fe51c77..5156583 100644 --- a/Makefile +++ b/Makefile @@ -150,10 +150,10 @@ ttyponies: mkdir -p "ttyponies" for pony in $$(ls --color=no "ponies/"); do \ echo "building ttypony: $$pony" ;\ - if [[ `readlink "ponies/$$pony"` = "" ]]; then \ + if [ `readlink "ponies/$$pony"` = "" ]; then \ ponysay2ttyponysay < "ponies/$$pony" | tty2colourfultty -c 1 -e > "ttyponies/$$pony" ;\ git add "ttyponies/$$pony" ;\ - elif [[ ! -f "ttyponies/$$pony" ]]; then \ + elif [ ! -f "ttyponies/$$pony" ]; then \ ln -s `readlink "ponies/$$pony"` "ttyponies/$$pony" ;\ git add "ttyponies/$$pony" ;\ fi \ @@ -163,9 +163,9 @@ pdfmanual: texi2pdf "manuals/ponysay.texinfo" git add "manuals/ponysay.texinfo" "ponysay.pdf" for ext in `echo aux cp cps fn ky log pg toc tp vr`; do \ - (if [[ -f "ponysay.$$ext" ]]; then unlink "ponysay.$$ext"; fi); \ + (if [ -f "ponysay.$$ext" ]; then unlink "ponysay.$$ext"; fi); \ done - if [[ -d "ponysay.t2d" ]]; then rm -r "ponysay.t2d"; fi + if [ -d "ponysay.t2d" ]; then rm -r "ponysay.t2d"; fi submodules: clean (cd "ponyquotes4ponysay/"; make clean) @@ -174,7 +174,7 @@ submodules: clean quotes: submodules (cd "ponyquotes4ponysay/"; make -B) - if [[ -d quotes ]]; then git rm "quotes/"*.*; fi + if [ -d quotes ]; then git rm "quotes/"*.*; fi mkdir -p "quotes" cp "ponyquotes4ponysay/ponyquotes/"*.* "quotes" git add "quotes/"*.* -- cgit