From 2ffa13af58b5488cef3a356110086349161f8b45 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 23 May 2014 18:16:10 +0200 Subject: [PATCH] Add tool to create upgrades --- util/create_upgrade.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 util/create_upgrade.sh diff --git a/util/create_upgrade.sh b/util/create_upgrade.sh new file mode 100755 index 0000000..8b49ceb --- /dev/null +++ b/util/create_upgrade.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +fromver=$1 +ver=$2 +input=cartodb--${ver}.sql +output=cartodb--${fromver}--${ver}.sql + +cat ${input} | grep -v 'duplicated extension$' > ${output} +