summary refs log tree commit diff
path: root/pkgs/tools/graphics/zxing/zxing.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/graphics/zxing/zxing.sh')
-rw-r--r--pkgs/tools/graphics/zxing/zxing.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/zxing/zxing.sh b/pkgs/tools/graphics/zxing/zxing.sh
new file mode 100644
index 00000000000..ca6ac60bab6
--- /dev/null
+++ b/pkgs/tools/graphics/zxing/zxing.sh
@@ -0,0 +1,18 @@
+#! /bin/sh
+choice="$1";
+shift
+case "$choice" in
+	encode | create | write | CommandLineEncoder)
+		zxing-cmdline-encoder "$@";
+		;;
+	decode | read | run | CommandLineRunner)
+		zxing-cmdline-runner "$@";
+		;;
+	help | usage | --help | --usage | -h)
+		zxing read;
+		zxing write;
+		;;
+	*)
+		zxing read "$choice" "$@"
+		;;
+esac