{"thread":{"id":"4077","subject":"script to create debian package","startedAt":"2006-05-05T20:53:09Z","lastAt":"2006-05-05T20:53:09Z","messageCount":1,"participants":["Matthias Lederhofer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"19592","messageId":"E1Fc7IT-0003tv-Va@moooo.ath.cx","threadId":"4077","inReplyTo":null,"subject":"script to create debian package","fromName":"Matthias Lederhofer","fromEmail":"matled@gmx.net","sentAt":"2006-05-05T20:53:09Z","receivedAt":"2006-05-05T20:53:09Z","isPatch":false,"sender":{"key":"matled@gmx.net","avatar":null},"body":"I wrote a script similar to the script in scripts/package/builddeb in\nthe kernel tree for git. Is there any interest to integrate it into\nthe git source tree? I've attached the script.\n\n\n#!/bin/sh\ntmpdir=\"`pwd`/debian/tmp\"\n\nmake prefix=/usr all doc\nmake prefix=\"$tmpdir/usr\" install install-doc\n\nversion=\"`cat GIT-VERSION-FILE | cut -d ' ' -f 3`\"\nname=\"git debian package script <`id -nu`@`hostname -f`>\"\n\nmkdir -p \"$tmpdir/DEBIAN\"\n\ncat <<EOF > debian/control\nSource: git\nSection: devel\nPriority: optional\nMaintainer: $name\nStandards-Version: 3.6.1\n\nPackage: git\nConflicts: git-arch, git-core, git-cvs, git-doc, git-email, git-svn, gitk\nProvides: git-arch, git-core, git-cvs, git-doc, git-email, git-svn, gitk\nArchitecture: any\nDescription: git, version $version\n This package contains git version $version.\nEOF\n\ncat <<EOF > debian/changelog\ngit ($version-1) unstable; urgency=low\n\n  * A standard release\n\n -- $name  `date -R`\nEOF\n\nchmod -R og-w debian/tmp\ndpkg-gencontrol -isp\nfakeroot dpkg --build \"$tmpdir\" ..\n"}]}