1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

Small fixes to auto-updater

svn path=/nixpkgs/trunk/; revision=22389
This commit is contained in:
Michael Raskin 2010-06-23 04:50:03 +00:00
parent 0fcb69e1da
commit 6308953547
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
own_dir="$(cd "$(dirname "$0")"; sh -c pwd)"
cp "$own_dir/../builder-defs/template-bdp-uud.nix" "$1.nix"
cp "$own_dir/../builder-defs/template-auto-callable.nix" "$1.nix"
sed -e "s@src-for-default.nix@src-for-$1.nix@g" -i "$1.nix"
echo '{}' > "src-for-$1.nix"
cat << EOF > src-info-for-$1.nix

View file

@ -57,7 +57,7 @@ prefetchClause=""
version="$(echo "$freshUrl" |
sed -re "$extractReleaseSF")"
baseName="$(getAttr baseName "$(echo "freshUrl" | sed -re 's@.*/projects/([^/]+)/.*@\1@')")"
baseName="$(getAttr baseName "$(echo "$freshUrl" | sed -re 's@.*/projects/([^/]+)/.*@\1@')")"
url="$freshUrl"
name="$baseName-$version"
advertisedUrl="$freshUrl"