fix
[libpgclient.git] / dist.sh
blob6cfe60a053c90f49cabddafdaea10474f2d307d6
1 #!/bin/sh
3 VER=`cat libpgcli.pc.in | grep Version | awk '{print $2}'`
4 DIR=libpgclient-$VER
5 (rm libpgclient-$VER.tar.bz2 2>/dev/null || true)
6 mkdir -p $DIR $DIR/include/libpgcli $DIR/src $DIR/util
7 cp include/libpgcli/* $DIR/include/libpgcli
8 cp src/* $DIR/src
9 cp util/* $DIR/util
10 cp Jamfile $DIR/
11 cp Jamrules.configure $DIR/
12 cp LICENSE $DIR/
13 cp README.md $DIR/
14 cp libpgcli.pc.in $DIR/
15 tar cvf libpgclient-$VER.tar $DIR/
16 bzip2 libpgclient-$VER.tar
17 rm -fr $DIR/