diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/package/mkdebian | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 6adb3a16ba3b..985d72d1ab34 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian | |||
@@ -71,22 +71,21 @@ if [ "$ARCH" = "um" ] ; then | |||
71 | packagename=user-mode-linux-$version | 71 | packagename=user-mode-linux-$version |
72 | fi | 72 | fi |
73 | 73 | ||
74 | # Try to determine maintainer and email values | 74 | email=${DEBEMAIL-$EMAIL} |
75 | if [ -n "$DEBEMAIL" ]; then | 75 | |
76 | email=$DEBEMAIL | 76 | # use email string directly if it contains <email> |
77 | elif [ -n "$EMAIL" ]; then | 77 | if echo $email | grep -q '<.*>'; then |
78 | email=$EMAIL | 78 | maintainer=$email |
79 | else | ||
80 | email=$(id -nu)@$(hostname -f 2>/dev/null || hostname) | ||
81 | fi | ||
82 | if [ -n "$DEBFULLNAME" ]; then | ||
83 | name=$DEBFULLNAME | ||
84 | elif [ -n "$NAME" ]; then | ||
85 | name=$NAME | ||
86 | else | 79 | else |
87 | name="Anonymous" | 80 | # or construct the maintainer string |
81 | user=${KBUILD_BUILD_USER-$(id -nu)} | ||
82 | name=${DEBFULLNAME-$user} | ||
83 | if [ -z "$email" ]; then | ||
84 | buildhost=${KBUILD_BUILD_HOST-$(hostname -f 2>/dev/null || hostname)} | ||
85 | email="$user@$buildhost" | ||
86 | fi | ||
87 | maintainer="$name <$email>" | ||
88 | fi | 88 | fi |
89 | maintainer="$name <$email>" | ||
90 | 89 | ||
91 | # Try to determine distribution | 90 | # Try to determine distribution |
92 | if [ -n "$KDEB_CHANGELOG_DIST" ]; then | 91 | if [ -n "$KDEB_CHANGELOG_DIST" ]; then |