From b9b26b83c8e1e1e6d5c1376a5318d382be0c1a9d Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Wed, 13 Jan 2016 21:52:33 -0500 Subject: [PATCH] Remove old scripts --- scripts/upload.sh | 33 --------------------------------- scripts/website_push.sh | 40 ---------------------------------------- 2 files changed, 73 deletions(-) delete mode 100755 scripts/upload.sh delete mode 100755 scripts/website_push.sh diff --git a/scripts/upload.sh b/scripts/upload.sh deleted file mode 100755 index 284724bab..000000000 --- a/scripts/upload.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash -set -e - -# Get the parent directory of where this script is. -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done -DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" - -# Change into that dir because we expect that -cd $DIR - -# Get the version from the command line -VERSION=$1 -if [ -z $VERSION ]; then - echo "Please specify a version." - exit 1 -fi - -# Make sure we have a bintray API key -if [ -z $BINTRAY_API_KEY ]; then - echo "Please set your bintray API key in the BINTRAY_API_KEY env var." - exit 1 -fi - -for ARCHIVE in ./pkg/dist/*; do - ARCHIVE_NAME=$(basename ${ARCHIVE}) - - echo Uploading: $ARCHIVE_NAME - curl \ - -T ${ARCHIVE} \ - -umitchellh:${BINTRAY_API_KEY} \ - "https://api.bintray.com/content/mitchellh/packer/packer/${VERSION}/${ARCHIVE_NAME}" -done diff --git a/scripts/website_push.sh b/scripts/website_push.sh deleted file mode 100755 index a51c9c9b1..000000000 --- a/scripts/website_push.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash - -# Set the tmpdir -if [ -z "$TMPDIR" ]; then - TMPDIR="/tmp" -fi - -# Create a temporary build dir and make sure we clean it up. For -# debugging, comment out the trap line. -DEPLOY=`mktemp -d $TMPDIR/packer-www-XXXXXX` -trap "rm -rf $DEPLOY" INT TERM EXIT - -# Get the parent directory of where this script is. -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done -DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" - -# Copy into tmpdir -shopt -s dotglob -cp -r $DIR/website/* $DEPLOY/ - -# Change into that directory -pushd $DEPLOY &>/dev/null - -# Ignore some stuff -touch .gitignore -echo ".sass-cache" >> .gitignore -echo "build" >> .gitignore -echo "vendor" >> .gitignore - -# Add everything -git init -q . -git add . -git commit -q -m "Deploy by $USER" - -git remote add heroku git@heroku.com:packer-www.git -git push -f heroku master - -# Go back to our root -popd &>/dev/null