mkdebian (6276761955817fd8259093a6e6a9ad88ab466b21) mkdebian (c52090805382387f60c8e4cf8d613d0cf77ee1e9)
1#!/bin/sh
2#
3# Copyright 2003 Wichert Akkerman <wichert@wiggy.net>
4#
5# Simple script to generate a debian/ directory for a Linux kernel.
6
7set -e
8

--- 111 unchanged lines hidden (view full) ---

120 else
121 rm -f debian/patches/diff.patch
122 fi
123}
124
125rm -rf debian
126mkdir debian
127
1#!/bin/sh
2#
3# Copyright 2003 Wichert Akkerman <wichert@wiggy.net>
4#
5# Simple script to generate a debian/ directory for a Linux kernel.
6
7set -e
8

--- 111 unchanged lines hidden (view full) ---

120 else
121 rm -f debian/patches/diff.patch
122 fi
123}
124
125rm -rf debian
126mkdir debian
127
128email=${DEBEMAIL}
129
130# use email string directly if it contains <email>
131if echo "${email}" | grep -q '<.*>'; then
132 maintainer=${email}
128user=${KBUILD_BUILD_USER-$(id -nu)}
129name=${DEBFULLNAME-${user}}
130if [ "${DEBEMAIL:+set}" ]; then
131 email=${DEBEMAIL}
133else
132else
134 # or construct the maintainer string
135 user=${KBUILD_BUILD_USER-$(id -nu)}
136 name=${DEBFULLNAME-${user}}
137 if [ -z "${email}" ]; then
138 buildhost=${KBUILD_BUILD_HOST-$(hostname -f 2>/dev/null || hostname)}
139 email="${user}@${buildhost}"
140 fi
141 maintainer="${name} <${email}>"
133 buildhost=${KBUILD_BUILD_HOST-$(hostname -f 2>/dev/null || hostname)}
134 email="${user}@${buildhost}"
142fi
135fi
136maintainer="${name} <${email}>"
143
144if [ "$1" = --need-source ]; then
145 gen_source
146fi
147
148# Some variables and settings used throughout the script
149version=$KERNELRELEASE
150if [ -n "$KDEB_PKGVERSION" ]; then

--- 103 unchanged lines hidden ---
137
138if [ "$1" = --need-source ]; then
139 gen_source
140fi
141
142# Some variables and settings used throughout the script
143version=$KERNELRELEASE
144if [ -n "$KDEB_PKGVERSION" ]; then

--- 103 unchanged lines hidden ---