Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: bash
install: ./configure --development && make
script:
# Need to prefix with bash until https://github.com/bmizerany/roundup/issues/25 is fixed
- ./roundup --help
- ./roundup -v
- ./roundup roundup-1-test.sh edge-test.sh
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ build: roundup

roundup: roundup.sh FORCE
$(SHELL) -n roundup.sh
cp roundup.sh roundup
sed "s~#!/bin/sh~#!${SHELL}~" roundup.sh > roundup
chmod 0755 roundup

test: roundup
Expand Down
6 changes: 5 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ echo "building for ${UNAME:-unknown}" \

looking "for /bin/sh"
SH=$(have /bin/sh) && {
if expr "$("$SH" --version 2>/dev/null)" : '.*bash' >/dev/null
if test $(readlink /bin/sh) = dash
then
SH=/bin/bash
found '' "oh ick, it looks like dash. Setting SH to $SH"
elif expr "$("$SH" --version 2>/dev/null)" : '.*bash' >/dev/null
then
found '' "oh ick, it looks like bash"
else
Expand Down
2 changes: 1 addition & 1 deletion roundup-1-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# ------------

# Prevent carpel tunnel
rup() { /bin/sh $0 $1-test.sh ; }
rup() { $SHELL $0 $1-test.sh ; }

# The Plan
# --------
Expand Down