summaryrefslogtreecommitdiffstats
path: root/debootstrap
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2007-07-31 09:55:34 (GMT)
committerColin Watson <cjwatson@debian.org>2007-07-31 09:55:34 (GMT)
commit974445b92471a9044ae0ecd65357a1ca86f2ab69 (patch)
tree5abe04a3993b9ba183ac78eaa1db2dc4fb5c055b /debootstrap
parent222be15fe07482c02579b89711cba9b2c5ad863d (diff)
downloaddebootstrap-974445b92471a9044ae0ecd65357a1ca86f2ab69.zip
debootstrap-974445b92471a9044ae0ecd65357a1ca86f2ab69.tar.gz
debootstrap-974445b92471a9044ae0ecd65357a1ca86f2ab69.tar.bz2
* Add --version option (closes: #294484).
r48820
Diffstat (limited to 'debootstrap')
-rwxr-xr-xdebootstrap7
1 files changed, 7 insertions, 0 deletions
diff --git a/debootstrap b/debootstrap
index 5184b42..ec9dfa0 100755
--- a/debootstrap
+++ b/debootstrap
@@ -1,5 +1,7 @@
#!/bin/sh -e
+VERSION='@VERSION@'
+
unset TMP TEMP TMPDIR || true
###########################################################################
@@ -65,6 +67,7 @@ usage()
echo
cat <<EOF
--help display this help and exit
+ --version display version information and exit
--verbose don't turn off the output of wget
--download-only download packages, but don't perform installation
@@ -105,6 +108,10 @@ if [ $# != 0 ] ; then
usage
exit 0
;;
+ --version)
+ echo "debootstrap $VERSION"
+ exit 0
+ ;;
--boot-floppies)
if [ -n "$USE_DEBIANINSTALLER_INTERACTION" ] ; then
error 1 ARG_BFDI "Can only use one of --boot-floppies and --debian-installer"