File: bootstrap

package info (click to toggle)
gcc-mingw-w64 8
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 276 kB
  • sloc: makefile: 208; sed: 66; sh: 25
file content (32 lines) | stat: -rwxr-xr-x 907 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

# Builds the gcc-mingw-w64-bootstrap package, required to build
# mingw-w64. This script is intended to be run from the directory
# in which you extracted the source (ie. not run within the debian
# directory but from the debian directory's parent).
#
# By default this will use dpkg-buildpackage but you can specify an
# alternate build command on the command line:
#	./debian/bootstrap pdebuild
# After the build the environment is restored to produce the full
# build.

# Clean up (required to make sure we don't have anything left over
# from the full build).
fakeroot debian/rules clean

# Set the control file and rules variant up.
ln -sf rules.bootstrap debian/rules.variant
cp debian/control.bootstrap debian/control

# Build.
if [ -z "$1" ]; then
    dpkg-buildpackage
else
    $*
fi

# Clean up...
fakeroot debian/rules clean
ln -sf rules.full debian/rules.variant
debian/rules control