projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
97eb00e
)
Dynamically calculate version number using the Debian package version.
author
Michael Prokop
<mika@grml.org>
Thu, 2 Dec 2010 13:55:13 +0000
(14:55 +0100)
committer
Michael Prokop
<mika@grml.org>
Thu, 2 Dec 2010 14:09:42 +0000
(15:09 +0100)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
2fb9381
..
16f02b2
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1,9
+1,9
@@
#!/bin/sh
#!/bin/sh
-# Filename: grml-bootstrap
-# Purpose: wrapper around debootstrap for installing plain Debian via
g
rml
+# Filename: grml-
de
bootstrap
+# Purpose: wrapper around debootstrap for installing plain Debian via
G
rml
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# 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
.
+# License: This file is licensed under the GPL v2
+
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
@@
-11,7
+11,8
@@
set -e # exit on any error
# variables {{{
PN="$(basename $0)"
# variables {{{
PN="$(basename $0)"
-VERSION='0.40'
+VERSION="$(dpkg --list $PN 2>/dev/null| awk '/^i/ {print $3}')"
+VERSION="${VERSION:-unknown}"
MNTPOINT="/mnt/debootstrap.$$"
# inside the chroot system locales might not be available, so use minimum:
MNTPOINT="/mnt/debootstrap.$$"
# inside the chroot system locales might not be available, so use minimum: