~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/etc/win32/cygwin_tools/ar.sh

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
CMD=""
3
 
while test -n "$1" ; do
4
 
    x="$1"
5
 
    case "$x" in
6
 
        -out:)
7
 
            shift
8
 
            case "$1" in
9
 
                /*)
10
 
                    MPATH=`cygpath -m $1`;;
11
 
                 *)
12
 
                    MPATH=$1;;
13
 
            esac
14
 
            CMD="$CMD -out:\"$MPATH\"";; 
15
 
        -out:/*)
16
 
            y=`echo $x | sed 's,^-out:\(/.*\),\1,g'`;
17
 
            MPATH=`cygpath -m $y`;
18
 
            CMD="$CMD -out:\"$MPATH\"";; 
19
 
        /*)
20
 
            MPATH=`cygpath -m $x`;
21
 
            CMD="$CMD \"$MPATH\"";; 
22
 
        *)
23
 
            y=`echo $x | sed 's,",\\\",g'`;
24
 
            CMD="$CMD \"$y\"";;
25
 
    esac
26
 
    shift
27
 
done
28
 
 
29
 
eval lib.exe $CMD