[thrift] highly concurrent Erlang goodness

Summary:
 * shim to use object-oriented code as gen_servers
 * high(er) performance Erlang-style server and transport
 * sane packaging based on otp-base, i.e. Makefiles and real structure

Test Plan: tutorial server offers the same (subset of) functionality as previous version

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665164 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/erl/tools/.appgen/rename.sh b/lib/erl/tools/.appgen/rename.sh
new file mode 100755
index 0000000..6f077c2
--- /dev/null
+++ b/lib/erl/tools/.appgen/rename.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+if [ $# -eq 3 ]; then
+	OLD_PREFIX=$1
+	NEW_PREFIX=$2
+	FILENAME=$3
+	NEW_FILENAME=$(echo $FILENAME | sed -e "s/$OLD_PREFIX/$NEW_PREFIX/")
+	echo "moving $FILENAME to $NEW_FILENAME"
+	mv $FILENAME $NEW_FILENAME
+	exit 0;
+fi
+
+
+if [ $# -eq 2 ]; then
+	while read line; 
+	do 
+		OLD_PREFIX=$1
+		NEW_PREFIX=$2
+		NEW_FILENAME=$(echo ${line} | sed -e "s/$OLD_PREFIX/$NEW_PREFIX/")
+		echo "moving ${line} to $NEW_FILENAME"
+		mv ${line} $NEW_FILENAME
+	done
+	exit 0
+fi
+