mirror of
https://github.com/0intro/wmii
synced 2024-11-24 14:50:02 +03:00
31 lines
473 B
Bash
Executable File
31 lines
473 B
Bash
Executable File
#!/bin/sh
|
|
set -ef
|
|
|
|
ifs="$(echo)"
|
|
name=$1
|
|
vers=$2
|
|
dist=$3
|
|
desc="Upstream build"
|
|
auth="Kris Maglione <kris@suckless.org>"
|
|
date=$(date +'%a, %d %b %Y %T %z')
|
|
if hg root >/dev/null 2>&1; then
|
|
t() { hg log -r . --template "{$@}"; }
|
|
vers=$(t rev)
|
|
desc=$(t desc)
|
|
auth=$(t author)
|
|
date=$(t 'date|rfc822date')
|
|
fi
|
|
|
|
cat >debian/changelog.new <<!
|
|
$name ($vers) $dist; urgency=low
|
|
|
|
* $desc
|
|
|
|
-- $auth $date
|
|
|
|
$(cat debian/changelog)
|
|
!
|
|
|
|
mv debian/changelog.new debian/changelog
|
|
|