aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Mortier <mort@cantab.net>2019-03-26 15:49:08 +0000
committerRichard Mortier <mort@cantab.net>2019-03-26 15:49:08 +0000
commit08ea29e893cac0fecd72bd7fad0b70d653b95cab (patch)
tree8c2d35a4c0bc2dad9ace8968ce3f251b5c62d7cb
parent4267837e1d071c6cebb1c6fd42dfabf9aed0c3ea (diff)
downloaddocker-abuild-08ea29e893cac0fecd72bd7fad0b70d653b95cab.tar.bz2
docker-abuild-08ea29e893cac0fecd72bd7fad0b70d653b95cab.tar.xz
licenses: add some
Signed-off-by: Richard Mortier <mort@cantab.net>
-rw-r--r--LICENSE.md7
-rwxr-xr-xabuild.in4
2 files changed, 11 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..620c856
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,7 @@
+Copyright 2019 Richard Mortier <mort@cantab.net>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/abuild.in b/abuild.in
index 0b3f77e..835102b 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1,5 +1,8 @@
#!/bin/sh
+# Copyright (C) 2019 Richard Mortier <mort@cantab.net>
+# Licensed under the MIT License, https://opensource.org/licenses/MIT
+
set -e
## debug
@@ -41,6 +44,7 @@ if [ "$DOCKER_ABUILD_CACHE" = "true" ]; then
for v in %%ABUILD_VOLUMES%% ; do
vol=abuild-$ABUILD_VERSION-${v//\//_}
if [ "$DOCKER_ABUILD_CLEAN" = "true" ]; then
+ ## clean the cache if requested
docker rm -f $(docker ps -qaf "volume=$vol") >/dev/null 2>/dev/null || true
docker volume rm $vol >/dev/null
docker volume create $vol >/dev/null