Skip to content

Instantly share code, notes, and snippets.

@sigmike
Created December 25, 2013 16:03
Show Gist options
  • Select an option

  • Save sigmike/8124523 to your computer and use it in GitHub Desktop.

Select an option

Save sigmike/8124523 to your computer and use it in GitHub Desktop.
--- old/acml-ifort/PKGBUILD 2013-12-18 06:41:22.000000000 +0100
+++ new/acml-ifort/PKGBUILD 2013-12-25 16:59:28.788836594 +0100
@@ -20,7 +20,7 @@
wget ${_source}
mv "index.html?f=acml-5-3-1-ifort-64bit.tgz" "${srcdir}/index.html"
_nonce=`grep "nonce" "${srcdir}/index.html" | awk '{print $5;}' | sed "s^value=^^g" | sed 's^"^^g'`
- _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed "s^value=^^g" | sed 's^"^^g'`
+ _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed 's^value="^^g' | sed 's^"/>^^g'`
# Request actual file using acquired variables
curl -fLC - --retry 3 --retry-delay 3 -d amd_developer_central_nonce=${_nonce} \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment