~ubuntu-branches/ubuntu/trusty/mit-scheme/trusty

« back to all changes in this revision

Viewing changes to src/etc/install-bin-symlinks.sh

  • Committer: Bazaar Package Importer
  • Author(s): Chris Hanson
  • Date: 2010-03-10 02:00:45 UTC
  • mfrom: (1.1.7 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100310020045-4np1y3ro6sk2oz92
Tags: 9.0.1-1
* New upstream.
* debian/watch: Fix, previous version was broken.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# $Id: install-bin-symlinks.sh,v 1.4 2008/01/30 20:02:08 cph Exp $
4
 
#
5
3
# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
6
4
#     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7
 
#     2005, 2006, 2007, 2008 Massachusetts Institute of Technology
 
5
#     2005, 2006, 2007, 2008, 2009, 2010 Massachusetts Institute of
 
6
#     Technology
8
7
#
9
8
# This file is part of MIT/GNU Scheme.
10
9
#
37
36
    exit 1
38
37
fi
39
38
 
40
 
if [ "${EXE}" != mit-scheme ] && [ ! -f "${DIR}/mit-scheme" ]; then
41
 
    run_cmd rm -f "${DIR}"/mit-scheme
42
 
    run_cmd ln -s "${EXE}" "${DIR}"/mit-scheme
43
 
fi
 
39
case ${EXE} in
 
40
    mit-scheme-c|mit-scheme-native)
 
41
        if test ! -f "${DIR}"/mit-scheme; then
 
42
            run_cmd rm -f "${DIR}"/mit-scheme
 
43
            run_cmd ln -s "${EXE}" "${DIR}"/mit-scheme
 
44
        fi
 
45
        ;;
 
46
    mit-scheme-*)
 
47
        if test ! -f "${DIR}"/mit-scheme-native; then
 
48
            run_cmd rm -f "${DIR}"/mit-scheme-native
 
49
            run_cmd ln -s "${EXE}" "${DIR}"/mit-scheme-native
 
50
        fi
 
51
        if test ! -f "${DIR}"/mit-scheme; then
 
52
            run_cmd rm -f "${DIR}"/mit-scheme
 
53
            run_cmd ln -s mit-scheme-native "${DIR}"/mit-scheme
 
54
        fi
 
55
        ;;
 
56
esac
44
57
 
45
58
run_cmd rm -f "${DIR}"/scheme "${DIR}"/bchscheme
46
59
run_cmd ln -s mit-scheme "${DIR}"/scheme