Last active
September 5, 2016 15:39
-
-
Save Caffe1neAdd1ct/59356d981e6fa33ddb1f to your computer and use it in GitHub Desktop.
Sassc compatibility with Netbeans 8.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a ARGS | |
for var in "$@"; do | |
# Ignore known bad arguments | |
if [ "$var" = '--cache-location' ] || [ "$var" = '--debug-info' ]; then | |
continue | |
fi | |
ARGS[${#ARGS[@]}]="$var" | |
done | |
ARGS=("${ARGS[@]:1}") | |
DIR="$(cd "$(dirname "$0")" && pwd)" | |
echo -e "ARGUMENTS: ${ARGS[@]}" | |
echo -e "COMMAND: $DIR/sassc ${ARGS[@]}" | |
$DIR/sassc "${ARGS[@]}" |
If installed / available on path then remove $DIR references and just use sassc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removes the cache location and debug options which aren't compatible with the sassc implementation of libsass. Place
sassc.sh
next tosassc/bin/sassc
after runningmake
.