Skip to content

Instantly share code, notes, and snippets.

@Caffe1neAdd1ct
Last active September 5, 2016 15:39
Show Gist options
  • Save Caffe1neAdd1ct/59356d981e6fa33ddb1f to your computer and use it in GitHub Desktop.
Save Caffe1neAdd1ct/59356d981e6fa33ddb1f to your computer and use it in GitHub Desktop.
Sassc compatibility with Netbeans 8.1
#!/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[@]}"
@Caffe1neAdd1ct
Copy link
Author

Removes the cache location and debug options which aren't compatible with the sassc implementation of libsass. Place sassc.sh next to sassc/bin/sassc after running make.

@Caffe1neAdd1ct
Copy link
Author

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