Add initial zsh completion for grml-live.
authorMichael Prokop <devnull@localhost>
Sun, 16 Sep 2007 22:13:31 +0000 (00:13 +0200)
committerMichael Prokop <devnull@localhost>
Sun, 16 Sep 2007 22:13:31 +0000 (00:13 +0200)
Update debian/rules according to new and renamed files.
Update usage examples inside grml-live script.

debian/rules
etc/zsh/completion.d/_grml-live [new file with mode: 0644]
grml-live

index 86fc4ff..e61d7fa 100755 (executable)
@@ -34,9 +34,10 @@ install: build
                       usr/share/grml-live
 
        # Add here commands to install the package into debian/grml-live.
-       cp -a etc debian/grml-live/
-       cp -a examples debian/grml-live/usr/share/doc/grml-live/
-       cp -a x86_files debian/grml-live/usr/share/grml-live/
+       cp -a etc         debian/grml-live/
+       cp -a examples    debian/grml-live/usr/share/doc/grml-live/
+       cp -a i386_files debian/grml-live/usr/share/grml-live/
+       cp -a windows     debian/grml-live/usr/share/grml-live/
        install -o root -m 755 grml-live debian/grml-live/usr/sbin/grml-live
 
 # Build architecture-independent files here.
diff --git a/etc/zsh/completion.d/_grml-live b/etc/zsh/completion.d/_grml-live
new file mode 100644 (file)
index 0000000..ae3040d
--- /dev/null
@@ -0,0 +1,20 @@
+#compdef grml-live
+# Filename:      /etc/zsh/completion.d/_grml-live
+# Purpose:       completion for command grml-live for zsh (z shell)
+# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2.
+# Latest change: Mon Sep 17 00:11:55 CEST 2007 [mika]
+################################################################################
+
+arguments=(
+  '-c:classe(s):(`cd /etc/grml/fai/config/package_config && ls`)'
+  '-F[force execution without prompting for yes/no]'
+  '-h[display usage information]'
+  '-suite:Debian suite:(stable testing unstable etch lenny sid)'
+  '-v[increase verbosity]'
+)
+_arguments -s $arguments
+
+## END OF FILE #################################################################
+# vim:foldmethod=marker
index 786eb75..7d15c60 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -56,14 +56,14 @@ usage()
   echo "
 $PN - build process script for generating a (grml based) Linux Live-ISO
 
-Usage: $PN [-c <classe[s]>] [-t <target_directory>] [-F] [-h|--help] [additional_arguments_for_fai]
+Usage: $PN [-c <classe[s]>] [-t <target_directory>] [-s <suite> [-Fvh]
 
 Usage examples:
 
     $PN
     $PN -c GRML,I386 -t /dev/shm/grml
     $PN -c GRML,GRML_X,I386 -t /grml/
-    $PN -c GRML,I386
+    $PN -s sid -c GRML,I386
 
 More details: man grml-live
               /usr/share/doc/grml-live/grml-live.html