Repository: lalrpop/lalrpop (language: rust)

Issue:
snap.sh and update_lrgrammar.sh
CONTRIBUTING.md says to use `update_lrgrammar.sh`, while the `verify_lalrpop_generates_itself` test says to use `snap.sh`.  Upon inspection, both scripts contain basically the same thing.  Only one should be necessary.


Discussion / hints:

Fix patch:
diff --git a/snap.sh b/snap.sh
deleted file mode 100755
index 431e77dae..000000000
--- a/snap.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-cargo run -p lalrpop -- --force --no-whitespace --out-dir . lalrpop/src/parser/lrgrammar.lalrpop
diff --git a/version.sh b/version.sh
index 9d9a59838..c1a006928 100755
--- a/version.sh
+++ b/version.sh
@@ -36,4 +36,4 @@ perl -p -i -e 's/version *= *"'$VERSION'"/version = "'$1'"/' \
 perl -p -i -e 's/^lalrpop([\-a-z]*) *= *"[0-9.]+"/lalrpop\1 = "'$1'"/' \
     doc/src/quick_start_guide.md doc/src/tutorial/001_adding_lalrpop.md
 
-./snap.sh
+./update_lrgrammar.sh


Test patch:
diff --git a/lalrpop-test/src/lib.rs b/lalrpop-test/src/lib.rs
index e8fe90987..6528283a2 100644
--- a/lalrpop-test/src/lib.rs
+++ b/lalrpop-test/src/lib.rs
@@ -1109,7 +1109,7 @@ fn verify_lalrpop_generates_itself() {
         &actual,
         &expected,
         "The snapshot does not match what lalrpop generates now.\n\
-         Use ./snap.sh to generate a new snapshot of the lrgrammar",
+         Use ./update_lrgrammar.sh to generate a new snapshot of the lrgrammar",
     );
 }