2
0

04_release_hash.sh 395 B

12345678
  1. #!/bin/bash
  2. SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum | cut -f 1 -d' ')
  3. ENTRY="hash redis-${1}.tar.gz sha1 $SHA http://download.redis.io/releases/redis-${1}.tar.gz"
  4. echo $ENTRY >> ~/hack/redis-hashes/README
  5. vi ~/hack/redis-hashes/README
  6. echo "Press any key to commit, Ctrl-C to abort)."
  7. read yes
  8. (cd ~/hack/redis-hashes; git commit -a -m "${1} hash."; git push)