build.sh: Use Naohiro's $(whoami) default namespace
authorW. Trevor King <wking@tremily.us>
Sat, 29 Nov 2014 16:48:13 +0000 (08:48 -0800)
committerW. Trevor King <wking@tremily.us>
Sat, 29 Nov 2014 17:01:42 +0000 (09:01 -0800)
This way folks who aren't me don't need to explicitly set NAMESPACE.
Naohiro added the line in bdb9c6cb (Initial import, 2014-06-27, [1])
and then clarified the licensing in 8f90d189 (Add copyright notice:
issue #4, [2]).

Based-on-patch-by: Naohiro Aota <naota@gentoo.org>
[1]: https://github.com/naota/dockergentoo/commit/bdb9c6cbdaa8b3dc1579c6c4fd1ae5cd89db83cc
[2]: https://github.com/naota/dockergentoo/commit/8f90d189b7f4175f3447aa7f82b82799944f07c1

build.sh

index 83870c3f6b45841e2eaf76746b10ba6664f69525..4405ce83a2cba73cbe4b3629449a9110dc72ddab 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,7 @@
 #!/bin/sh
 #
 # Copyright (C) 2013-2014 W. Trevor King <wking@tremily.us>
+# Copyright (C) 2014 Naohiro Aota <naota@gentoo.org>
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are met:
@@ -25,7 +26,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 AUTHOR="${AUTHOR:-W. Trevor King <wking@tremily.us>}"
-NAMESPACE="${NAMESPACE:-wking}"
+NAMESPACE="${NAMESPACE:-$(whoami)}"
 DATE="${DATE:-20141023}"
 MIRROR="${MIRROR:-http://distfiles.gentoo.org/}"
 ARCH_URL="${ARCH_URL:-${MIRROR}releases/amd64/autobuilds/${DATE}/}"