File: select_platform.sh

package info (click to toggle)
cl-sdl 1%3A0.2.2-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 960 kB
  • ctags: 1,608
  • sloc: lisp: 8,283; ansic: 516; sh: 177; makefile: 158
file content (17 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

SYS=""
case `uname` in
    Linux|GNU/kFreeBSD|GNU) SYS=linux ;;
    FreeBSD) SYS=fbsd ;;
    *CYGWIN*) SYS=cygwin ;;
    *MINGW*) SYS=mingw ;;
    Darwin) SYS=darwin ;;
esac

if [ -z "$SYS" ]; then
    echo "System not found"
    exit 1;
fi

ln -sf Makefile.$SYS Makefile.opts