Skip to content

Commit

Permalink
Fixed a silly path error on my part
Browse files Browse the repository at this point in the history
  • Loading branch information
tarwich committed Mar 29, 2014
1 parent e309739 commit 933f586
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion QLMarkdown.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/Volumes/HD2/Users/sammyd/Documents/Projects/qlmarkdown/discount-config/update.sh";
shellScript = "$(SRCROOT)/discount-config/update.sh";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
22 changes: 15 additions & 7 deletions discount-config/update.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
#!/bin/bash

status_msg () {
echo -e "\033[1m$1\033[0m"
if [ -t FD ] ; then
echo -e "\033[1m$1\033[0m"
else
echo "$1"
fi
}

error_msg () {
echo -e "\033[31m$1\033[0m" >&2
if [ -t FD ] ; then
echo -e "\033[31m$1\033[0m" >&2
else
echo "$1" >&2
fi

tput sgr0
}

status_msg "Running configure.sh..."

# Checkout the discount module if necessary
if [ ! -d discount ] ; then
echo Updating the discount directory...
if [[ ! -a $PWD/discount/configure.sh ]] ; then
status_msg "Updating the discount directory..."
git submodule update --init
fi

cd `dirname $0`/../discount/
status_msg "Running configure.sh..."
cd discount
./configure.sh --with-fenced-code

# make the blocktags
Expand Down

0 comments on commit 933f586

Please sign in to comment.