Clarify cmdline option usage
authorMichael Prokop <mika@grml.org>
Thu, 20 Nov 2008 17:50:55 +0000 (18:50 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 20 Nov 2008 17:50:55 +0000 (18:50 +0100)
cmdlineopts.clp
debian/changelog
grml-debootstrap
grml-debootstrap.8.txt

index 9ab44dc..a513314 100644 (file)
@@ -24,68 +24,68 @@ while :; do
   case "$1" in
 
   # == Bootstrap options
   case "$1" in
 
   # == Bootstrap options
-  --mirror|-m)         # Mirror which should be used for apt-get/aptitude.
+  --mirror|-m)         # Mirror which should be used for apt-get/aptitude
     shift; _opt_mirror="$1"
     ;;
     shift; _opt_mirror="$1"
     ;;
-  --iso|-i)            # Mountpoint where a Debian ISO is mounted to, for use instead
+  --iso|-i)            # Mountpoint where a Debian ISO is mounted to
     shift; _opt_iso="$1"
     ;;
     shift; _opt_iso="$1"
     ;;
-  --release|-r)        # Release of new Debian system (default: stable).
+  --release|-r)        # Release of new Debian system (default: stable)
     shift; _opt_release="$1"
     ;;
     shift; _opt_release="$1"
     ;;
-  --target|-t)         # Target partition (/dev/...) or directory.
+  --target|-t)         # Target partition (/dev/...) or directory
     shift; _opt_target="$1"
     ;;
     shift; _opt_target="$1"
     ;;
-  --mntpoint|-p)       # Mountpoint used for mounting the target system.
+  --mntpoint|-p)       # Mountpoint used for mounting the target system
     shift; _opt_mntpoint="$1"
     ;;
     shift; _opt_mntpoint="$1"
     ;;
-  --debopt)            # Extra parameters passed to the debootstrap.
+  --debopt)            # Extra parameters passed to the debootstrap
     shift; _opt_debopt="$1"
     ;;
     shift; _opt_debopt="$1"
     ;;
-  --interactive)       # Use interactive mode (frontend).
+  --interactive)       # Use interactive mode (frontend)
     _opt_interactive=T
     ;;
     _opt_interactive=T
     ;;
-  --nodebootstrap)     # Skip debootstrap, only do configuration to the target.
+  --nodebootstrap)     # Skip debootstrap, only do configuration to the target
     _opt_nodebootstrap=T
     ;;
   #
 
   # == Configuration options
     _opt_nodebootstrap=T
     ;;
   #
 
   # == Configuration options
-  --config|-c)         # Use specified configuration file, defaults to /etc/debootstr
+  --config|-c)         # Use specified configuration file, defaults to /etc/debootstrap
     shift; _opt_config="$1"
     ;;
     shift; _opt_config="$1"
     ;;
-  --confdir|-d)        # Place of config files for debootstrap, defaults to /etc/debo
+  --confdir|-d)        # Place of config files for debootstrap, defaults to /etc/debootstrap
     shift; _opt_confdir="$1"
     ;;
     shift; _opt_confdir="$1"
     ;;
-  --packages)          # Install packages defined in <confdir>/packages. Option arg:
+  --packages)          # Install packages defined in specified file
     shift; _opt_packages="$1"
     _opt_packages_set=T
     ;;
     shift; _opt_packages="$1"
     _opt_packages_set=T
     ;;
-  --debconf)           # Pre-seed packages using <confdir>/debconf-selections. Option
+  --debconf)           # Pre-seed packages using specified file
     shift; _opt_debconf="$1"
     _opt_debconf_set=T
     ;;
     shift; _opt_debconf="$1"
     _opt_debconf_set=T
     ;;
-  --scripts)           # Execute scripts from <confdir>/scripts/. Option
+  --scripts)           # Execute scripts from specified directory
     shift; _opt_scripts="$1"
     _opt_scripts_set=T
     ;;
     shift; _opt_scripts="$1"
     _opt_scripts_set=T
     ;;
-  --chroot-scripts)   # Execute scripts from <confdir>/chroot-scripts/. Option
+  --chroot-scripts)   # Execute chroot scripts from specified directory
     shift; _opt_chroot_scripts_set="$1"
     _opt_chroot_scripts_set=T
     ;;
     shift; _opt_chroot_scripts_set="$1"
     _opt_chroot_scripts_set=T
     ;;
-  --keep_src_list)     # Do not overwrite user provided apt sources.list.
+  --keep_src_list)     # Do not overwrite user provided apt sources.list
     _opt_keep_src_list=T
     ;;
     _opt_keep_src_list=T
     ;;
-  --hostname)          # Hostname of Debian system.
+  --hostname)          # Hostname of Debian system
     shift; _opt_hostname="$1"
     ;;
     shift; _opt_hostname="$1"
     ;;
-  --password)          # Use specified password as password for user root.
+  --password)          # Use specified password as password for user root
     shift; _opt_password="$1"
     ;;
     shift; _opt_password="$1"
     ;;
-  --bootappend)        # Add specified appendline to kernel whilst booting.
+  --bootappend)        # Add specified appendline to kernel whilst booting
     shift; _opt_bootappend="$1"
     ;;
     shift; _opt_bootappend="$1"
     ;;
-  --groot)             # Root device for usage in grub, corresponds with $TARGET in g
+  --groot)             # Root device for usage in grub, corresponds with $TARGET in grub
     shift; _opt_groot="$1"
     ;;
   --grub)              # Target for grub installation. Use grub syntax for specifying
     shift; _opt_groot="$1"
     ;;
   --grub)              # Target for grub installation. Use grub syntax for specifying
@@ -93,14 +93,14 @@ while :; do
     ;;
 
   # == Other options
     ;;
 
   # == Other options
-  --verbose|-v)        # Increase verbosity.
+  --verbose|-v)        # Increase verbosity
     if [ "$_opt_verbose" ]; then _opt_verbose=`expr $_opt_verbose + 1`
     else _opt_verbose=1; fi
     ;;
     if [ "$_opt_verbose" ]; then _opt_verbose=`expr $_opt_verbose + 1`
     else _opt_verbose=1; fi
     ;;
-  --help|-h)           # Print this usage information and exit.
+  --help|-h)           # Print usage information and exit
     _opt_help=T
     ;;
     _opt_help=T
     ;;
-  --version|-V)        # Show summary of options and exit.
+  --version|-V)        # Show version information and exit
     _opt_version=T
     ;;
   --)
     _opt_version=T
     ;;
   --)
index 5ca67ef..4b938b9 100644 (file)
@@ -21,13 +21,14 @@ grml-debootstrap (0.23) unstable; urgency=low
     - added "--nodebootstrap": Skip debootstrap, only do configuration
       to the target
     - add -v, --verbose: Increase verbosity
     - added "--nodebootstrap": Skip debootstrap, only do configuration
       to the target
     - add -v, --verbose: Increase verbosity
-    - do not create stage file for finalize
+    - do not create stage file at finalize()
   * Edit /etc/network/interfaces as well if the file exists already,
     we definitely need at least a loopback interface.
   * Adjust hostname in /etc/postfix/main.cf.
   * Unify the --bootappend option, it's not --boot_append (thanks for
     the hint, Tong Sun).
   * Edit /etc/network/interfaces as well if the file exists already,
     we definitely need at least a loopback interface.
   * Adjust hostname in /etc/postfix/main.cf.
   * Unify the --bootappend option, it's not --boot_append (thanks for
     the hint, Tong Sun).
-  * Support execution of further scripts via --scripts and --chroot-scripts.
+  * Support execution of further scripts via options --scripts and
+    --chroot-scripts.
   * Drop locales from RECONFIGURE list (thanks for hint, Tong Sun).
     [Closes: issue560]
 
   * Drop locales from RECONFIGURE list (thanks for hint, Tong Sun).
     [Closes: issue560]
 
index 7b1bc72..0821225 100755 (executable)
@@ -36,38 +36,34 @@ Usage: $PN [options]
 
 Bootstrap options:
 
 
 Bootstrap options:
 
-  -m, --mirror=URL       Mirror which should be used for apt-get/aptitude.
-  -i, --iso=mnt          Mountpoint where a Debian ISO is mounted to, for use
+  -m, --mirror <URL>     Mirror which should be used for apt-get/aptitude.
+  -i, --iso <mnt>        Mountpoint where a Debian ISO is mounted to, for use
                            instead of fetching packages from a mirror.
                            instead of fetching packages from a mirror.
-  -r, --release=name     Release of new Debian system (default: stable).
-  -t, --target=target    Target partition (/dev/...) or directory.
-  -p, --mntpoint=mnt     Mountpoint used for mounting the target system.
-      --debopt=params    Extra parameters passed to the debootstrap.
+  -r, --release <name>   Release of new Debian system (default: stable).
+  -t, --target <target>  Target partition (/dev/...) or directory.
+  -p, --mntpoint <mnt>   Mountpoint used for mounting the target system.
+      --debopt <params>  Extra parameters passed to the debootstrap.
       --interactive      Use interactive mode (frontend).
       --nodebootstrap    Skip debootstrap, only do configuration to the target.
       --interactive      Use interactive mode (frontend).
       --nodebootstrap    Skip debootstrap, only do configuration to the target.
-      --groot=device     Root device for usage in grub, corresponds with
+      --groot <device>   Root device for usage in grub, corresponds with
                            \$TARGET in grub syntax, like hd0,0 for /dev/sda1.
                            \$TARGET in grub syntax, like hd0,0 for /dev/sda1.
-      --grub=device      Target for grub installation. Use grub syntax for
+      --grub <device>    Target for grub installation. Use grub syntax for
                            specifying, like hd0 for /dev/sda.
 
 Configuration options:
 
                            specifying, like hd0 for /dev/sda.
 
 Configuration options:
 
-  -c, --config=file        Use specified configuration file, defaults to
+  -c, --config <file>      Use specified configuration file, defaults to
                              /etc/debootstrap/config
                              /etc/debootstrap/config
-  -d, --confdir=path       Place of config files for debootstrap, defaults
+  -d, --confdir <path>     Place of config files for debootstrap, defaults
                              to /etc/debootstrap
                              to /etc/debootstrap
-      --packages[=f]       Install packages defined in <confdir>/packages.
-                             Option arg: alternative package list file.
-      --debconf[=f]        Pre-seed packages using <confdir>/debconf-selections.
-                             Option arg: alternative pre-seed db file.
+      --packages <file>    Install packages defined in specified list file.
+      --debconf <file>     Pre-seed packages using specified pre-seed db file.
       --keep_src_list      Do not overwrite user provided apt sources.list.
       --keep_src_list      Do not overwrite user provided apt sources.list.
-      --hostname=name      Hostname of Debian system.
-      --password=pwd       Use specified password as password for user root.
-      --bootappend=line    Add specified appendline to kernel whilst booting.
-      --chroot-scripts[=f] Execute scripts from <confdir>/chroot-scripts/
-                             Option arg: alternative chroot-scripts directory.
-      --scripts[=d]        Execute scripts from <confdir>/scripts/.
-                             Option arg: alternative scripts directory.
+      --hostname <name>    Hostname of Debian system.
+      --password <pwd>     Use specified password as password for user root.
+      --bootappend <line>  Add specified appendline to kernel whilst booting.
+      --chroot-scripts <d> Execute scripts specified chroot-scripts directory.
+      --scripts <dir>      Execute scripts from specified  scripts directory.
 
 Other options:
 
 
 Other options:
 
@@ -76,7 +72,7 @@ Other options:
   -V, --version          Show summary of options and exit.
 
 Usage examples can be found in the grml-debootstrap manpage.
   -V, --version          Show summary of options and exit.
 
 Usage examples can be found in the grml-debootstrap manpage.
-Send bugreports to the grml-team: bugs@grml.org || http://grml.org/bugs/
+Send bugreports to the grml-team: bugs (at) grml.org || http://grml.org/bugs/
 "
 }
 
 "
 }
 
index dbdc209..df7cdae 100644 (file)
@@ -85,10 +85,9 @@ Options and environment variables
     Specify mountpoint that should be used for mounting the target system.
     Corresponding with configuration variable MNTPOINT.
 
     Specify mountpoint that should be used for mounting the target system.
     Corresponding with configuration variable MNTPOINT.
 
-*--packages* [<_file_>]::
+*--packages* <_file_>::
     Use specified file as list for packages that should be installed instead of
     Use specified file as list for packages that should be installed instead of
-    the default package list file <confdir>/packages. If no file parameter is given
-    it activates the default package list file <confdir>/packages.
+    the default package list file <confdir>/packages.
 
 *--password* <_password_>::
     Use specified password as password for user root. Use with caution, as your
 
 *--password* <_password_>::
     Use specified password as password for user root. Use with caution, as your