File: bootstrap

package info (click to toggle)
unsort 1.1.2-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 396 kB
  • ctags: 106
  • sloc: sh: 994; ansic: 897; makefile: 52
file content (25 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download
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
#! /bin/posh

# $Id: bootstrap 1322 2008-06-07 19:10:17Z wsl $
# $URL: http://rot.zo.oi/svn/wsl/src/unsort/bootstrap $

set -ex

fgrep -q 3c93d44989db04634d250398e5758b2d2cff8786 bootstrap

build=$(mktemp -d)
trap 'rm -rf $build' EXIT

svn export . $build/src
svn2cl -o $build/src/ChangeLog

cat >$build/src/Makefile.am <<EOF
bin_PROGRAMS = unsort
unsort_SOURCES = $(echo *.[ch])
dist_man_MANS = $(echo *.1)
EXTRA_DIST = bootstrap makedist
EOF

./makedist $build

cp -a $build/*.tar.gz .