Sha256: 9033434db97071189de63fabbcc1aec9a79777fc3591e66c411190fe7504c736

Contents?: true

Size: 755 Bytes

Versions: 5

Compression:

Stored size: 755 Bytes

Contents

#! /bin/bash

set -e

FIXTURE_PATH="spec/fixtures/wordless"
WORDLESS_ARCHIVE="https://github.com/welaika/wordless/archive/master.tar.gz"
WORDLESS_PREFERENCES="wordless/theme_builder/vanilla_theme/config/initializers/wordless_preferences.php"

function log {
  echo;
  echo "== [ $1 ] ==";
}

log "Deleting {$FIXTURE_PATH}..."
rm -rf $FIXTURE_PATH
mkdir $FIXTURE_PATH
echo "Done!"

log "Downloading wordless from github..."
cd $FIXTURE_PATH
wget $WORDLESS_ARCHIVE -O - | tar -xz --strip 1
echo "Done!"

log "Customizing ruby and compass paths..."
cp -f ../wordless_preferences.php $WORDLESS_PREFERENCES
perl -p -i -e "s|<RUBY_PATH>|$(which ruby)|" $WORDLESS_PREFERENCES
perl -p -i -e "s|<COMPASS_PATH>|$(which compass)|" $WORDLESS_PREFERENCES
echo "Done!"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wordless-1.1.6 bin/setup.sh
wordless-1.1.5 bin/setup.sh
wordless-1.1.2 bin/setup.sh
wordless-1.1.1 bin/setup.sh
wordless-1.1.0 bin/setup.sh