Skip ab/6749736 in stage.

Merged-In: I56692c32f86415cfdd78b0112b44e51b1369591c
Change-Id: I48fc5127bf26168b9a80a720c8a37c977c2975e5
diff --git a/METADATA b/METADATA
index a328cee..67d5c26 100644
--- a/METADATA
+++ b/METADATA
@@ -6,8 +6,8 @@
     value: "https://crates.io/crates/proc-macro-nested"
   }
   url {
-    type: GIT
-    value: "https://github.com/dtolnay/proc-macro-hack"
+    type: ARCHIVE
+    value: "https://static.crates.io/crates/proc-macro-nested/proc-macro-nested-0.1.6.crate"
   }
   version: "0.1.6"
   license_type: NOTICE
diff --git a/post_update.sh b/post_update.sh
new file mode 100755
index 0000000..befd02c
--- /dev/null
+++ b/post_update.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# $1 Path to the new version.
+# $2 Path to the old version.
+
+set -x
+set -e
+
+# out/count.rs should be copied after cargo build.
+# Change src/lib.rs to include files from ../out/
+SRCFILE=src/lib.rs
+OLDSTR='include!(concat!(env!("OUT_DIR"), "/count.rs"));'
+NEWSTR='include!("../out/count.rs");  // ANDROID'
+sed -i -e "s:$OLDSTR:$NEWSTR:" $SRCFILE
+# Make sure that sed replaced $OLDSTR with $NEWSTR
+grep "$NEWSTR" $SRCFILE > /dev/null
diff --git a/src/lib.rs b/src/lib.rs
index 91089e0..a8b7694 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -43,9 +43,7 @@
 // ANDROID: Use std to allow building as a dylib.
 extern crate std;
 
-// ANDROID: count.rs generated and put in the out subdirectory.
-// include!(concat!(env!("OUT_DIR"), "/count.rs"));
-include!("../out/count.rs");
+include!("../out/count.rs");  // ANDROID
 
 #[doc(hidden)]
 #[macro_export]