Override Perforce typos.
authorIain Patterson <me@iain.cx>
Thu, 6 Dec 2012 13:15:00 +0000 (13:15 +0000)
committerIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 14:50:07 +0000 (14:50 +0000)
Custom commands that override common typos "p4 intergrate" and "p4
oepned" to do the intended thing.

opt/p4/p4-intergrate [new file with mode: 0755]
opt/p4/p4-oepned [new file with mode: 0755]

diff --git a/opt/p4/p4-intergrate b/opt/p4/p4-intergrate
new file mode 100755 (executable)
index 0000000..f2b7761
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+. ${0%/*}/common
+
+echo >&2 "Assuming you meant p4 integrate..."
+exec p4 $p4opts integrate ${1+"$@"}
diff --git a/opt/p4/p4-oepned b/opt/p4/p4-oepned
new file mode 100755 (executable)
index 0000000..9f4ef5b
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+. ${0%/*}/common
+
+echo >&2 "Assuming you meant p4 opened..."
+exec p4 $p4opts opened ${1+"$@"}