Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149509
b: refs/heads/master
c: edec611
h: refs/heads/master
i:
  149507: 43eed57
v: v3
  • Loading branch information
maximilian attems authored and Sam Ravnborg committed Jun 9, 2009
1 parent 0069bf5 commit 5ca2c72
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9461f666e42f2412e134a49e90ffd4a3340dfc0a
refs/heads/master: edec611db0474e90503d46428e4f196d5e30c091
22 changes: 19 additions & 3 deletions trunk/scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,30 @@ EOF
chmod 755 "$tmpdir/DEBIAN/$script"
done

name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
# Try to determine maintainer and email values
if [ -n "$DEBEMAIL" ]; then
email=$DEBEMAIL
elif [ -n "$EMAIL" ]; then
email=$EMAIL
else
email=$(id -nu)@$(hostname -f)
fi
if [ -n "$DEBFULLNAME" ]; then
name=$DEBFULLNAME
elif [ -n "$NAME" ]; then
name=$NAME
else
name="Anonymous"
fi
maintainer="$name <$email>"

# Generate a simple changelog template
cat <<EOF > debian/changelog
linux ($packageversion) unstable; urgency=low
* Custom built Linux kernel.
-- $name $(date -R)
-- $maintainer $(date -R)
EOF

# Generate copyright file
Expand Down Expand Up @@ -130,7 +146,7 @@ cat <<EOF > debian/control
Source: linux
Section: base
Priority: optional
Maintainer: $name
Maintainer: $maintainer
Standards-Version: 3.6.1
EOF

Expand Down

0 comments on commit 5ca2c72

Please sign in to comment.