From 898281bbc75be4cd8e2edcc354ab197ee5e8005d Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 11 Jan 2017 09:55:42 -0800 Subject: [PATCH] update composer, adds release script release script builds a zip file for releases --- composer.lock | 10 +++++----- release.sh | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100755 release.sh diff --git a/composer.lock b/composer.lock index 39f4662..0ea9a55 100644 --- a/composer.lock +++ b/composer.lock @@ -94,16 +94,16 @@ }, { "name": "indieweb/link-rel-parser", - "version": "0.1.2", + "version": "0.1.3", "source": { "type": "git", "url": "https://github.com/indieweb/link-rel-parser-php.git", - "reference": "7127a92f32cecbf8166fb3b34130a59ea63e2041" + "reference": "295420e4f16d9a9d262a3c25a7a583794428f055" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/indieweb/link-rel-parser-php/zipball/7127a92f32cecbf8166fb3b34130a59ea63e2041", - "reference": "7127a92f32cecbf8166fb3b34130a59ea63e2041", + "url": "https://api.github.com/repos/indieweb/link-rel-parser-php/zipball/295420e4f16d9a9d262a3c25a7a583794428f055", + "reference": "295420e4f16d9a9d262a3c25a7a583794428f055", "shasum": "" }, "require": { @@ -136,7 +136,7 @@ "indieweb", "microformats2" ], - "time": "2016-04-13T17:48:59+00:00" + "time": "2017-01-11T17:14:49+00:00" }, { "name": "ircmaxell/password-compat", diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..7e1bc91 --- /dev/null +++ b/release.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +release_dir=../XRay-release + +current=`pwd` + +rsync -ap --delete controllers $release_dir/ +rsync -ap --delete lib $release_dir/ +rsync -ap --delete public $release_dir/ +rsync -ap --delete views $release_dir/ +rsync -ap --delete --exclude=.git vendor $release_dir/ +cp README.md $release_dir/ +cp LICENSE.txt $release_dir/ +cp index.php $release_dir/ +cp .htaccess $release_dir/ +cp controllers/.htaccess $release_dir/vendor/ + +cd $release_dir +zip -r xray.zip . + +cd $current