Commit 4a7e6f71 authored by amnesia's avatar amnesia

/etc/amnesia/version: take version from debian/changelog

parent af0a03a9
......@@ -9,7 +9,7 @@ Homepage: https://amnesia.boum.org/
Package: amnesia
Architecture: all
Depends: ${misc:Depends}, live-helper (>= 1.0.5-1)
Depends: ${misc:Depends}, live-helper (>= 1.0.5-1), dpkg-dev
Description: a Tor-ified, amnesic Live System
amnesia is a Live System aimed at preserving its users' privacy:
- any outgoing connection to the Internet is forced to go through
......
......@@ -6,8 +6,19 @@ if [ -e config/amnesia.local ] ; then
. config/amnesia.local
fi
# init variables
RUN_LH_CONFIG="lh config noautoconfig"
# helper functions
fatal () {
echo "Fatal: $@" >&2
exit 2
}
# sanity checks
[ -x "`which dpkg-parsechangelog`" ] \
|| fatal "could not find dpkg-parsechangelog, please apt-get install dpkg-dev"
# init config/ with defaults
$RUN_LH_CONFIG ${@}
......@@ -62,7 +73,8 @@ $RUN_LH_CONFIG --packages-lists="$PACKAGES_LISTS" ${@}
# version
mkdir -p config/chroot_local-includes/etc/amnesia/
echo "${AMNESIA_TODAY}" > config/chroot_local-includes/etc/amnesia/version
echo "`dpkg-parsechangelog | sed -n 's/^Version: //p'` (${AMNESIA_TODAY})" \
> config/chroot_local-includes/etc/amnesia/version
# changelog
cp debian/changelog config/chroot_local-includes/usr/share/doc/Changelog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment