Squashed 'third_party/autocxx/' content from commit 629e8fa53

git-subtree-dir: third_party/autocxx
git-subtree-split: 629e8fa531a633164c0b52e2a3cab536d4cd0849
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
Change-Id: I62a03b0049f49adf029e0204639cdb5468dde1a1
diff --git a/tools/upgrade-cxx.sh b/tools/upgrade-cxx.sh
new file mode 100755
index 0000000..eb01333
--- /dev/null
+++ b/tools/upgrade-cxx.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Just specify the final numbers (e.g. 42 for 1.0.42)
+OLD=$1
+NEW=$2
+find . -type f -name "Cargo.toml" -print0 | xargs -0 sed -i -e "s/1.0.$OLD/1.0.$NEW/g" # cxx
+find . -type f -name "Cargo.toml" -print0 | xargs -0 sed -i -e "s/0.7.$OLD/0.7.$NEW/g" # cxx-gen