File: .bootstrap

package info (click to toggle)
lsh-utils 2.1-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 12,884 kB
  • sloc: ansic: 51,017; sh: 5,683; lisp: 657; makefile: 381; perl: 63
file content (55 lines) | stat: -rwxr-xr-x 1,289 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#! /bin/sh

# Build all automatically generated files that are not present in the
# repository.

# This script is for use in the source directory, before you run
# configure. To get started from a fresh checkout, you also need
# to run configure and make bootstrap from your build directory.

set -e

relative_symlink() {
    (
	target="$1"
	shift
	while [ $# -ge 1 ] ; do
	    dir="$1"
	    if [ "$dir" = "." ] ; then
		ln -s "$target" "$dir"
	    else
		dotdots="`echo "$dir" | sed 's%[^/][^/]*%..%g'`"
		(cd "$dir" && ln -s "$dotdots/$target" . || true)
	    fi
	    shift
	done
    )
}

relative_symlink misc/run-tests \
    src/testsuite src/argp/testsuite  \
    src/sftp/testsuite src/spki/testsuite

relative_symlink acinclude.m4 \
    src/argp src/spki src/sftp

relative_symlink misc/vsnprintf.c \
    src/argp src/sftp

relative_symlink misc/getopt.c src/spki/tools
relative_symlink misc/getopt1.c src/spki/tools
relative_symlink misc/getopt.h src/spki/tools
    
relative_symlink config.guess src/spki
relative_symlink config.sub src/spki

if [ "$1" = "links" ] ; then
    # Skip the time consuming autoconf and automake stuff
    exit 0;
fi

for subdir in src/argp src/sftp src/spki ; do
    (cd $subdir && ./.bootstrap)
done

aclocal && autoconf && autoheader && automake -a