summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-05-30 10:59:07 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-05-30 10:59:07 +0000
commit00f27bffd7d180417461c6a8952cad8944997f0a (patch)
treed11a249daef351a116cd4f911c3608f9e855818b
parent0988b8076c91248953feb595f993c0ab80a8cd33 (diff)
parentab386f8571bfb9177b65e085c0b77e74b0a3bba2 (diff)
downloaddefinitions-00f27bffd7d180417461c6a8952cad8944997f0a.tar.gz
Merge remote-tracking branch 'origin/jonathan/tar-write-ext'
-rwxr-xr-xmorphlib/exts/tar.write21
1 files changed, 21 insertions, 0 deletions
diff --git a/morphlib/exts/tar.write b/morphlib/exts/tar.write
new file mode 100755
index 00000000..7a2f01e1
--- /dev/null
+++ b/morphlib/exts/tar.write
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Copyright (C) 2013 Codethink Limited
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+# A Morph write extension to deploy to a .tar file
+
+set -eu
+
+tar -C "$1" -cf "$2"