remove wrapper scripts, fix symlinks appropriately, add dotnet-restore script
This commit is contained in:
parent
dc57fdf29a
commit
7c8a98d53e
5 changed files with 9 additions and 33 deletions
|
@ -9,10 +9,10 @@
|
||||||
"homepage": "https://dotnet.github.io/core",
|
"homepage": "https://dotnet.github.io/core",
|
||||||
|
|
||||||
"release":{
|
"release":{
|
||||||
"package_version":"0.1",
|
"package_version":"0.2",
|
||||||
"package_revision":"1",
|
"package_revision":"1",
|
||||||
"urgency" : "low",
|
"urgency" : "low",
|
||||||
"changelog_message" : "Initial package"
|
"changelog_message" : "Bootstrap loop package"
|
||||||
},
|
},
|
||||||
|
|
||||||
"control": {
|
"control": {
|
||||||
|
@ -28,8 +28,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"symlinks": {
|
"symlinks": {
|
||||||
"dotnet.sh" : "usr/bin/dotnet",
|
"dotnet" : "usr/bin/dotnet",
|
||||||
"dotnet-compile.sh" : "usr/bin/dotnet-compile",
|
"dotnet-compile" : "usr/bin/dotnet-compile",
|
||||||
"dotnet-publish.sh" : "usr/bin/dotnet-publish"
|
"dotnet-publish" : "usr/bin/dotnet-publish",
|
||||||
|
"dotnet-restore" : "usr/bin/dotnet-restore"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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]}"
|
SOURCE="${BASH_SOURCE[0]}"
|
||||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
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
|
done
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||||
|
|
||||||
exec "$DIR/corerun" "$DIR/dotnet-compile.dll" "$@"
|
exec "$DIR/dnx/dnu" "restore" "$@"
|
|
@ -1,4 +0,0 @@
|
||||||
## Wrapper Scripts
|
|
||||||
|
|
||||||
Used as a temporary workaround for a [coreconsole issue](https://github.com/dotnet/coreclr/issues/1774)
|
|
||||||
|
|
|
@ -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" "$@"
|
|
|
@ -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" "$@"
|
|
Loading…
Add table
Add a link
Reference in a new issue