File: populate-debian-tmp

package info (click to toggle)
gcc-m68k-gnu 1.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 52 kB
  • ctags: 5
  • sloc: sh: 247; makefile: 38
file content (17 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
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 m68k-gnu debian/tmp
else
  CC=$GCC ./make-cross --cc-only m68k-gnu debian/tmp
  CC=$GPP ./make-cross --cc-only m68k-gnu debian/tmp
  ln -s g++    debian/tmp/usr/m68k-gnu/bin/c++
  ln -s ar     debian/tmp/usr/bin/m68k-gnu-ar
  ln -s ld     debian/tmp/usr/bin/m68k6-gnu-ld
  ln -s ranlib debian/tmp/usr/bin/m68k-gnu-ranlib
fi