git/list[1] front-page[2] threads[3] people[4] search[5] about
 

script to create debian package

From
MLMatthias Lederhofer <matled@gmx.net>
Date
May 5, 2006, 20:53 UTC
Message-ID
<E1Fc7IT-0003tv-Va@moooo.ath.cx>

I wrote a script similar to the script in scripts/package/builddeb in the kernel tree for git. Is there any interest to integrate it into the git source tree? I've attached the script.

#!/bin/sh tmpdir="`pwd`/debian/tmp"

make prefix=/usr all doc make prefix="$tmpdir/usr" install install-doc

version="`cat GIT-VERSION-FILE | cut -d ' ' -f 3`" name="git debian package script <`id -nu`@`hostname -f`>"

mkdir -p "$tmpdir/DEBIAN"
cat <<EOF > debian/control
Source: git
Section: devel
Priority: optional
Maintainer: $name
Standards-Version: 3.6.1
Package: git
Conflicts: git-arch, git-core, git-cvs, git-doc, git-email, git-svn, gitk
Provides: git-arch, git-core, git-cvs, git-doc, git-email, git-svn, gitk
Architecture: any
Description: git, version $version
 This package contains git version $version.
EOF

cat <<EOF > debian/changelog git ($version-1) unstable; urgency=low

  * A standard release
 -- $name  `date -R`
EOF

chmod -R og-w debian/tmp dpkg-gencontrol -isp fakeroot dpkg --build "$tmpdir" ..

Message 1 of 1 in “script to create debian package”
  1. Matthias LederhoferMay 5, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.