forked from include-what-you-use/include-what-you-use
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdist.sh
executable file
·31 lines (24 loc) · 867 Bytes
/
dist.sh
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
28
29
30
#!/bin/sh
##===--------- dist.sh - package up binary distribution of IWYU -----------===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
set -eu
# Create clean dist directory
rm -rf dist
mkdir dist
# Assume that Release+Asserts build exists.
ln -f ../../../../../build/Release+Asserts/bin/include-what-you-use dist/
ln -f fix_includes.py dist/
ln -f README.txt dist/
ln -f LICENSE.TXT dist/
pushd dist > /dev/null
# Build archive name to the following pattern:
# include-what-you-use-<ver>-<arch>-<distro>-<release>.tar.gz
ARCHIVE=include-what-you-use-3.3-$(uname -m)-$(lsb_release -si)-$(lsb_release -sr).tar.gz
tar -cvzf $ARCHIVE *
popd > /dev/null