aboutsummaryrefslogtreecommitdiffstats
path: root/package.sh
blob: c021319ab565b842f584263ea031f01b9acc632d (plain) (blame)
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
27
#!/bin/sh

PKGNAME=nfcollect
PKGVER=0.2
PKGREL=1
PKGDIR=${PKGNAME}-${PKGVER}
PKG="${PKGNAME}-${PKGVER}-${PKGREL}.tar.gz"

echo "Packaging $PKG ..."
echo

mkdir -p "${PKGDIR}"
cp -a bin lib include \
      configure configure.ac build-aux \
      Makefile.{in,am} \
      service \
      "${PKGDIR}"

tar --exclude "*.swp" \
    --exclude "*.o" \
    --exclude .deps \
    --exclude .dirstamp \
    -zcvf "$PKG" "${PKGDIR}"

SHA1=$(sha1sum "$PKG" | cut -f1 -d' ')
echo
echo "The SHA1 sum of $PKG is $SHA1"