Sha256: a68c0b634ffb55afde0e8599ca2e640651dd8001be213489f61f32c7727b1edb

Contents?: true

Size: 965 Bytes

Versions: 11

Compression:

Stored size: 965 Bytes

Contents

#!/bin/bash

ROOT_DIR=`dirname $0`/../..
cd $ROOT_DIR

SNAP_DIR=angular-phonecat-snapshots


rm -rf $SNAP_DIR
mkdir $SNAP_DIR

for i in {0..11}
do
  mkdir $SNAP_DIR/step-$i
  git checkout -f step-$i

  if [[ $i = 0 ]]; then
    cp -r app config scripts test $SNAP_DIR/step-0/
    mkdir $SNAP_DIR/step-0/logs
    rm -r $SNAP_DIR/step-0/scripts/private
    rm $SNAP_DIR/step-0/scripts/update-repo.sh
  else
    cp -r app $SNAP_DIR/step-$i/
    mkdir $SNAP_DIR/step-$i/test/
    cp -r test/unit test/e2e $SNAP_DIR/step-$i/test
    rm -r $SNAP_DIR/step-$i/app/img
    rm -r $SNAP_DIR/step-$i/app/lib
    rm -rf $SNAP_DIR/step-$i/app/phones
  fi

  if [[ $i = 5 ]]; then
    cp -r app/img $SNAP_DIR/step-0/app/
    cp -r app/phones $SNAP_DIR/step-0/app/
  fi
done

mkdir $SNAP_DIR/sandbox
cp scripts/private/goto_step.sh $SNAP_DIR/sandbox/
cp scripts/private/goto_step.bat $SNAP_DIR/sandbox/

zip -r angular-phonecat-`date +"%y%m%d_%H%M"` $SNAP_DIR

git checkout master

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
collection-json-browser-0.0.11 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.10 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.9 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.8 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.7 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.6 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.5 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.4 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.3 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.2 test/javascripts/scripts/private/snapshot.sh
collection-json-browser-0.0.1 test/javascripts/scripts/private/snapshot.sh