From: maximilian attems <max@stro.at>
To: Frans Pop <elendil@planet.nl>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Sam Ravnborg <sam@ravnborg.org>
Subject: Re: [PATCH 1/5] deb-pkg: minor general improvements in builddeb script
Date: Wed, 1 Apr 2009 23:38:24 +0200 [thread overview]
Message-ID: <20090401213824.GA17518@stro.at> (raw)
In-Reply-To: <200904012142.46145.elendil@planet.nl>
On Wed, 01 Apr 2009, Frans Pop wrote:
> * minor coding style improvements
> * typo fix in leading comment
> * better changelog entry
> * minor improvements in package descriptions
>
> Signed-off-by: Frans Pop <elendil@planet.nl>
ack,
beside the changelog entry, have more work done in that region ;)
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 1264b8e..462ee45 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -4,7 +4,7 @@
> # Copyright 2003 Wichert Akkerman <wichert@wiggy.net>
> #
> # Simple script to generate a deb package for a Linux kernel. All the
> -# complexity of what to do with a kernel after it is installer or removed
> +# complexity of what to do with a kernel after it is installed or removed
> # is left to other scripts and packages: they can install scripts in the
> # /etc/kernel/{pre,post}{inst,rm}.d/ directories that will be called on
> # package install and removal.
> @@ -13,13 +13,13 @@ set -e
>
> # Some variables and settings used throughout the script
> version=$KERNELRELEASE
> -revision=`cat .version`
> +revision=$(cat .version)
> tmpdir="$objtree/debian/tmp"
> fwdir="$objtree/debian/fwtmp"
> packagename=linux-$version
> fwpackagename=linux-firmware-image
>
> -if [ "$ARCH" == "um" ] ; then
> +if [ "$ARCH" = "um" ] ; then
> packagename=user-mode-linux-$version
> fi
>
> @@ -27,12 +27,12 @@ fi
> rm -rf "$tmpdir" "$fwdir"
> mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot"
> mkdir -p "$fwdir/DEBIAN" "$fwdir/lib"
> -if [ "$ARCH" == "um" ] ; then
> +if [ "$ARCH" = "um" ] ; then
>
> mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/share/doc/$packagename" "$tmpdir/usr/bin"
> fi
>
> # Build and install the kernel
> -if [ "$ARCH" == "um" ] ; then
> +if [ "$ARCH" = "um" ] ; then
> $MAKE linux
> cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map"
> cp .config "$tmpdir/usr/share/doc/$packagename/config"
> @@ -46,7 +46,7 @@ fi
>
> if grep -q '^CONFIG_MODULES=y' .config ; then
> INSTALL_MOD_PATH="$tmpdir" make KBUILD_SRC= modules_install
> - if [ "$ARCH" == "um" ] ; then
> + if [ "$ARCH" = "um" ] ; then
> mv "$tmpdir/lib/modules/$version"/* "$tmpdir/usr/lib/uml/modules/$version/"
> rmdir "$tmpdir/lib/modules/$version"
> fi
> @@ -71,13 +71,13 @@ name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
> cat <<EOF > debian/changelog
> linux ($version-$revision) unstable; urgency=low
>
> - * A standard release
> + * Custom built Linux kernel.
>
> -- $name $(date -R)
> EOF
>
> # Generate a control file
> -if [ "$ARCH" == "um" ]; then
> +if [ "$ARCH" = "um" ]; then
>
> cat <<EOF > debian/control
> Source: linux
> @@ -97,7 +97,7 @@ Description: User Mode Linux kernel, version $version
> many other things.
> .
> This package contains the Linux kernel, modules and corresponding other
> - files version $version
> + files. Version: $version.
> EOF
>
> else
> @@ -114,7 +114,7 @@ Suggests: $fwpackagename
> Architecture: any
> Description: Linux kernel, version $version
> This package contains the Linux kernel, modules and corresponding other
> - files version $version
> + files. Version: $version.
> EOF
> fi
>
> @@ -143,4 +143,3 @@ dpkg-gencontrol -isp -p$packagename
> dpkg --build "$tmpdir" ..
>
> exit 0
> -
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
maks
next prev parent reply other threads:[~2009-04-01 21:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-01 19:33 [PATCH 0/5] Improve flexibility of deb-pkg target Frans Pop
2009-04-01 19:38 ` [PATCH 4/5] Frans Pop
2009-04-01 19:42 ` [PATCH 1/5] deb-pkg: minor general improvements in builddeb script Frans Pop
2009-04-01 21:38 ` maximilian attems [this message]
2009-04-01 19:43 ` [PATCH 2/5] deb-pkg: fix 'file not found' error when building .deb package for arm Frans Pop
2009-04-01 19:43 ` [PATCH 3/5] deb-pkg: pass Debian maintainer script parameters to packaging hook scripts Frans Pop
2009-04-01 21:41 ` maximilian attems
2009-04-01 19:43 ` [PATCH 5a/5] deb-pkg: allow alternative hook scripts directory in .deb packages Frans Pop
2009-04-01 21:42 ` maximilian attems
2009-04-01 19:44 ` [PATCH 5b/5] " Frans Pop
2009-04-01 21:43 ` maximilian attems
2009-04-01 20:24 ` [PATCH 0/5] Improve flexibility of deb-pkg target maximilian attems
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090401213824.GA17518@stro.at \
--to=max@stro.at \
--cc=elendil@planet.nl \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).