remove wrapper scripts, fix symlinks appropriately, add dotnet-restore script

This commit is contained in:
Bryan 2015-10-19 17:31:31 -07:00
parent dc57fdf29a
commit 7c8a98d53e
5 changed files with 9 additions and 33 deletions

View file

@ -9,10 +9,10 @@
"homepage": "https://dotnet.github.io/core",
"release":{
"package_version":"0.1",
"package_version":"0.2",
"package_revision":"1",
"urgency" : "low",
"changelog_message" : "Initial package"
"changelog_message" : "Bootstrap loop package"
},
"control": {
@ -28,8 +28,9 @@
},
"symlinks": {
"dotnet.sh" : "usr/bin/dotnet",
"dotnet-compile.sh" : "usr/bin/dotnet-compile",
"dotnet-publish.sh" : "usr/bin/dotnet-publish"
"dotnet" : "usr/bin/dotnet",
"dotnet-compile" : "usr/bin/dotnet-compile",
"dotnet-publish" : "usr/bin/dotnet-publish",
"dotnet-restore" : "usr/bin/dotnet-restore"
}
}

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
#!/bin/bash
# Resolve symlinks until we have the parent dir of the actual file
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
@ -8,4 +9,4 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
exec "$DIR/corerun" "$DIR/dotnet-compile.dll" "$@"
exec "$DIR/dnx/dnu" "restore" "$@"

View file

@ -1,4 +0,0 @@
## Wrapper Scripts
Used as a temporary workaround for a [coreconsole issue](https://github.com/dotnet/coreclr/issues/1774)

View file

@ -1,11 +0,0 @@
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
exec "$DIR/corerun" "$DIR/dotnet-publish.dll" "$@"

View file

@ -1,11 +0,0 @@
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
exec "$DIR/corerun" "$DIR/dotnet.dll" "$@"