Skip to content

Instantly share code, notes, and snippets.

@jb55
Created March 4, 2011 22:03
Show Gist options
  • Select an option

  • Save jb55/855783 to your computer and use it in GitHub Desktop.

Select an option

Save jb55/855783 to your computer and use it in GitHub Desktop.
DEPS=$(cat urls.txt | grep -o "\w\+\.\w\+$")
redo-ifchange $DEPS
URL=$(grep $1$2 urls.txt)
redo-ifchange $1$2.stamp
curl $URL > $3
redo-always
URL=$(grep $1 urls.txt)
curl -silent -I ${URL} | grep "Last-Modified" | redo-stamp
http://ikeran.org/rationality.mobi
http://ikeran.org/rationality.epub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment