lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 37 lines 672 B view raw
1#!/bin/sh 2 3go() { 4 file="$1" 5 6 IFS=$'\n' 7 for pack in $(perl -n -e '/(<Pack .*\/>)/ && print "$1\n"' $file); do 8 remotepath=$(echo "$pack" | perl -n -e '/RemotePath="([^"]*)"/ && print $1') 9 hash=$(echo "$pack" | perl -n -e '/Hash="([^"]*)"/ && print $1') 10 url="http://cdn.unrealengine.com/dependencies/$remotepath/$hash" 11 12 until sha256=$(nix-prefetch-url $url --type sha256); do 13 true 14 done 15 16 cat <<EOF 17 "$hash" = fetchurl { 18 url = $url; 19 sha256 = "$sha256"; 20 }; 21EOF 22 done 23} 24 25 26cat <<EOF 27{ fetchurl }: 28 29{ 30EOF 31 32go Engine/Build/Commit.gitdeps.xml 33go Engine/Build/Promoted.gitdeps.xml 34 35cat <<EOF 36} 37EOF