File: makedist

package info (click to toggle)
fair 0.5.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 752 kB
  • sloc: ansic: 2,509; sh: 1,114; makefile: 28
file content (30 lines) | stat: -rwxr-xr-x 532 bytes parent folder | download | duplicates (3)
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

# $Id: makedist 222 2011-12-02 10:43:23Z wsl $
# $URL: https://svn.fair.uvt.nl/branches/0.5/makedist $

set -e

fgrep -q 07a5df0c8272a05f39a554ecbdb80bc91f524099 makedist

tmp=$(mktemp -d)
trap 'chmod -R u+rwX -- "$tmp";rm -rf -- "$tmp"' EXIT INT

svn export . $tmp/svn
svn2cl -o $tmp/svn/ChangeLog

(
cd $tmp/svn

autoreconf -fsi
sh configure

make -s distcheck

mkdir "$tmp/out"
echo print-archives: >>Makefile
echo '	@echo $(DIST_ARCHIVES)' >>Makefile
mv $(make -s print-archives) "$tmp/out/"
)

mv -v "$tmp"/out/* .