From 3a18af006ea8756ad8214d803f72e73cd8ece745 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Wed, 21 Oct 2015 14:46:34 +0200 Subject: [PATCH] Remove obsolete upgrade-sources script --- scripts/upgrade-sources | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 scripts/upgrade-sources diff --git a/scripts/upgrade-sources b/scripts/upgrade-sources deleted file mode 100755 index 55ac41c..0000000 --- a/scripts/upgrade-sources +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -ex -# Pull most recent Let's Chat sources. - -root_dir=$(dirname "$0")/.. -sources_dir=$root_dir/sources - -rm -rf $sources_dir/lets-chat -rm -rf $sources_dir/lets-chat-ldap - -git clone git@github.com:sdelements/lets-chat.git $sources_dir/lets-chat -git clone git@github.com:sdelements/lets-chat-ldap.git $sources_dir/lets-chat-ldap - -# Pre-install node modules -cd $sources_dir/lets-chat -npm cache clear -npm install --production -npm install --production lets-chat-ldap - -# Stage changes -# (git forbids to add a `.git` directory in a subdirectory (except when using submodules); remove them) -cd $root_dir -rm -rf $sources_dir/lets-chat/.git -rm -rf $sources_dir/lets-chat-ldap/.git -git add $sources_dir/* -git add -f $sources_dir/lets-chat/node_modules/ - -echo "Let's Chat sources pulled. Now commit the changes."