Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- set -x
- NAME=$1
- VERSION=$2
- shift 2
- echo "Hashing these files $*"
- file=/tmp/hashes${NAME}.${VERSION}
- >>for i in $*; do
- check=$OPAM_SWITCH_PREFIX/$i
- S> if [ -f $file ] ; then
- >> `grep -q $check $file`
- code=$?
- else
- code=100
- fi
- if [ $code -eq 0 ]; then
- S> md5sum -c $file
- S> if [ $? -eq 0 ]; then
- echo "$i is reproductible" >> /tmp/rb_log
- else
- echo "$i is NOT reproductible" >> /tmp/rb_log
- exit 1
- fi
- else
- echo "Generating for $i" >> /tmp/rb_log
- >> `md5sum $check >> $file`
- fi
- #fi
- done
Add Comment
Please, Sign In to add comment