File: bootstrap

package info (click to toggle)
sassc 3.6.1%2B20201027-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 264 kB
  • sloc: ansic: 773; makefile: 229; sh: 156
file content (50 lines) | stat: -rwxr-xr-x 1,250 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh

if [ -n "${TRAVIS_BUILD_DIR}" ]; then
  set -e
fi

if [ -z "$SASSC_PATH" ]; then
  export SASSC_PATH=`pwd`
fi

if [ -f "$SASSC_PATH/sassc/sassc.c" ]; then
  export SASSC_PATH=$SASSC_PATH/sassc
elif [ -f "$SASSC_PATH/../sassc.c" ]; then
  export SASSC_PATH=$SASSC_PATH/..
fi

if [ ! -f "$SASSC_PATH/sassc.c" ]; then
  echo "SassC source directory not found"
  echo "Consider setting it via SASSC_PATH"
  echo "Or call this script from the root"
  unset SASSC_PATH && exit 1
fi

if [ -z "$SASS_LIBSASS_PATH" ]; then
  export SASS_LIBSASS_PATH="$SASSC_PATH/../libsass/"
  echo "SASS_LIBSASS_PATH env-variable missing"
  echo "Using default: $SASS_LIBSASS_PATH"
fi

if [ ! -d "$SASS_LIBSASS_PATH" ]; then
  git clone https://github.com/sass/libsass.git "$SASS_LIBSASS_PATH"
else
  echo "LibSass source directory exists, skiping Git Clone"
fi

if [ -z "$SASS_SPEC_PATH" ]; then
  export SASS_SPEC_PATH="$SASSC_PATH/../sass-spec/"
  echo "SASS_SPEC_PATH env-variable missing"
  echo "Using default: $SASS_SPEC_PATH"
fi

if [ ! -d "$SASS_SPEC_PATH" ]; then
  git clone https://github.com/sass/sass-spec.git "$SASS_SPEC_PATH"
else
    echo "Sass-spec test directory exists, skiping Git Clone"
fi

if [ -n "${TRAVIS_BUILD_DIR}" ]; then
  set +e
fi