summaryrefslogtreecommitdiff
path: root/dist-build.sh
blob: 808d899e3fd823c6704e99b379de6377701d3069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/env bash

# Create libcutl-x.y.z directory with the 'build' build system.
#

trap 'exit 1' ERR

v=`cat libcutl/version`

echo "packaging libcutl-$v"
echo "EVERYTHING MUST BE COMMITTED!"

# prepare libcutl-x.y.z
#
rm -rf libcutl-$v
mkdir libcutl-$v
cd libcutl
git archive master | tar -x -C ../libcutl-$v
cd ..
rm -f libcutl-$v/.gitignore