File: populate-debian-tmp

package info (click to toggle)
make-cross 1.7-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 52 kB
  • ctags: 5
  • sloc: sh: 278; makefile: 39
file content (17 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
GCC=gcc
GPP=g++

specsGCC=`$GCC -v 2>&1 | sed 's/.* //; q'`
specsGPP=`$GPP -v 2>&1 | sed 's/.* //; q'`

if [ "$specsGCC" = "$specsGPP" ]; then
  CC=$GCC ./make-cross i386-gnu debian/tmp
else
  CC=$GCC ./make-cross --cc-only i386-gnu debian/tmp
  CC=$GPP ./make-cross --cc-only i386-gnu debian/tmp
  ln -s g++    debian/tmp/usr/i386-gnu/bin/c++
  ln -s ar     debian/tmp/usr/bin/i386-gnu-ar
  ln -s ld     debian/tmp/usr/bin/i386-gnu-ld
  ln -s ranlib debian/tmp/usr/bin/i386-gnu-ranlib
fi