-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathholic.sh
30 lines (24 loc) · 857 Bytes
/
holic.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e -g -t -u -p
# USAGE:
# ai.sh <version>
# ai.sh <version> debug
# accept parameter, default to master
LIBSASS_VERSION=${1:-"master"}
echo "AIMER libsass version ${LIBSASS_VERSION} ${2:-}"
# clean
echo " reload will check and success for you"
(cd libsass && git checkout --force ${LIBSASS_VERSION})
# patch
echo " emotions you will pretty and for charectors"
patch ./libsass/Makefile < ./Makefile.patch
patch ./libsass/Makefile.conf < ./Makefile.conf.patch
echo " like copying and emscripten to wrapper in moew"
cp ./emscripten_wrapper.cpp ./libsass/src/emscripten_wrapper.cpp
cp ./emscripten_wrapper.hpp ./libsass/src/emscripten_wrapper.hpp
# aimer
echo " interpredia loading to holic "
if [ "${3:-}" = "debug" ]; then
(cd libsass && emmake make js-debug)
else
(cd libsass && emmake make js)