File: make-tarball.sh

package info (click to toggle)
4store 1.1.6+20151109-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 82,388 kB
  • sloc: ansic: 65,689; sh: 2,916; perl: 2,245; makefile: 281; python: 213
file content (14 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

revision=`git describe --tags --always`
name="4store-${revision}"

(cd src && make clean)
rm -f tests/{query,import}/results/*
rm -rf /tmp/${name}
cp -r . /tmp/${name}
echo "echo -n ${revision}" > /tmp/${name}/version.sh
chmod 755 /tmp/${name}/version.sh
(cd /tmp && tar cvfz ${name}.tar.gz -h --exclude .git --exclude .gitignore --exclude dawg --exclude '*.tar.gz' --exclude '*.dmg' --exclude '*.app' --exclude '*.o' ${name})
mv /tmp/${name}.tar.gz .
rm -rf /tmp/${name}