#!/usr/bin/env sh # # Simple hack script to restore __revision__ and __COPYRIGHT_ lines # to what gets checked in to source. This comes in handy when people # send in diffs based on the released source. # if test "X$*" = "X"; then DIRS="src test" else DIRS="$*" fi for i in `find $DIRS -name '*.py'`; do ed $i <$/s/.*//p w q EOF done