#!/bin/bash opwd="$PWD" cd ../serpent git stash git pull git stash pop cp bignum.* compiler.* funcs.* lllparser.* opcodes.h parser.* rewriter.* tokenize.* util.* ../cpp-ethereum/libserpent/ cp cmdline.* "$opwd/sc/" cd "$opwd" perl -i -p -e 's:include "funcs.h":include :gc' sc/*