-
Notifications
You must be signed in to change notification settings - Fork 0
/
package-deb
executable file
·26 lines (17 loc) · 991 Bytes
/
package-deb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
umask 0022
date=$(date +"%a, %d %b %Y %T %z")
mkdir -p deb-packages debian/DEBIAN debian/usr/bin debian/usr/share/man/man1 debian/usr/share/doc/podder
grep '^ \*' changelog.m4 |
(
read discard version release discard
m4 -D__VERSION__=$version -D__RELEASE__=$release control.m4 > debian/DEBIAN/control
m4 -D__VERSION__=$version -D__DATE__="$date" podder.1.m4 > debian/usr/share/man/man1/podder.1
m4 -D__VERSION__=$version -D__DATE__="$date" podder.m4 > debian/usr/bin/podder
m4 -D__VERSION__=$version -D__RELEASE__=$release -D__DATE__="$date" changelog.m4 > debian/usr/share/doc/podder/changelog
)
cp debian/usr/share/doc/podder/changelog debian/usr/share/doc/podder/changelog.Debian
cp copyright debian/usr/share/doc/podder
chmod +x debian/usr/bin/podder
gzip --force --best debian/usr/share/man/man1/* debian/usr/share/doc/podder/changelog*
fakeroot dpkg-deb --build debian deb-packages