put Build-Date & Source-Date in the .deb package
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
380c3a0d0a
commit
e30d96cbaa
|
@ -0,0 +1,10 @@
|
|||
=Info=
|
||||
|
||||
Packages up various stuff using the bare minimum of interaction to make a .deb package.
|
||||
|
||||
.deb packages are 'ar' files. You can create them with 'ar', but the recommended way
|
||||
seems to be to use dpkg-deb.
|
||||
|
||||
The packages themselves you can browse and/or download here:
|
||||
|
||||
http://mirrors.wit.org/wit/pool/main/
|
|
@ -46,6 +46,8 @@ control:
|
|||
mkdir -p DEBIAN
|
||||
cp control DEBIAN/
|
||||
echo Version: ${VERSION}.${MINOR} >>DEBIAN/control
|
||||
echo Build-Date: `stat -c %z ~/go/src/github.com/coredns/coredns/coredns` >>DEBIAN/control
|
||||
echo Source-Date: `cd ~/go/src/github.com/coredns/coredns/ && git log -1 --format=%cd` >>DEBIAN/control
|
||||
|
||||
md5sum:
|
||||
cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums
|
||||
|
|
Loading…
Reference in New Issue