aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-16 18:27:20 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-16 18:27:20 +0200
commit23d84d1b553d4e820b5a3ce0d388247ee670e20c (patch)
treea04238fa4dc702635c97af491618489819ba3eab /Makefile
parente3c9cdfc95673abd60990b54fad036c37b6ef0a4 (diff)
downloadponysay-23d84d1b553d4e820b5a3ce0d388247ee670e20c.tar.gz
ponysay-23d84d1b553d4e820b5a3ce0d388247ee670e20c.tar.bz2
ponysay-23d84d1b553d4e820b5a3ce0d388247ee670e20c.zip
portability: [[ is not recongised by dash
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
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/"*.*