#!/bin/sh if [ -n "$1" ] ; then echo Please change to the directory you want to convert and run the script there without any command line argument! exit 1 fi echo echo Press ENTER to convert all C++ files under the current directory: echo `pwd` echo read WAIT find . -name "*.h" -or -name "*.hpp" -or -name "*.cc" -or -name "*.cpp" >cppfiles.lst echo The following files will be checked/modified: cat cppfiles.lst | less echo echo Press ENTER to start the conversion, or CTRL-C to quit. read WAIT perl `dirname $0`/migratecpp.pl cppfiles.lst