~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/etc/win32/msys_tools/msys2win_path.sh

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
MIXED=false
 
3
ABSOLUTE=false
 
4
done=false
 
5
while [ $done = false ]; do
 
6
    case "$1" in
 
7
        -m) 
 
8
            MIXED=true;
 
9
            shift;;
 
10
        -a)
 
11
            ABSOLUTE=true;
 
12
            shift;;
 
13
        *)
 
14
            done=true;;
 
15
    esac
 
16
done
 
17
if [ -z "$1" ]; then
 
18
    echo "Usage: $0 <path>" >&2
 
19
    exit 1;
 
20
fi
 
21
MSYS_PATH=`win2msys_path.sh "$1"` # Clean up spaces
 
22
if [ $ABSOLUTE = true ]; then
 
23
    MSYS_DIR=`dirname "$MSYS_PATH"`
 
24
    MSYS_FILE=`basename "$MSYS_PATH"`
 
25
    if [ X"$MSYS_FILE" = X".." ]; then
 
26
        MSYS_DIR="$MSYS_DIR/$MSYS_FILE"
 
27
        WIN_ADD=""
 
28
    else
 
29
        WIN_ADD="/$MSYS_FILE"
 
30
    fi
 
31
    SAVEDIR=`pwd`
 
32
    cd $MSYS_DIR
 
33
    CURRENT=`pwd`
 
34
    cd $SAVEDIR
 
35
    WINPATH=`cmd //C echo $CURRENT`
 
36
    WINPATH="$WINPATH$WIN_ADD"
 
37
else
 
38
    WINPATH=`cmd //c echo $MSYS_PATH`
 
39
fi
 
40
if [ $MIXED = true ]; then
 
41
    echo $WINPATH
 
42
else
 
43
    echo $WINPATH | sed 's,/,\\,g'
 
44
fi
 
 
b'\\ No newline at end of file'