summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-10-20 20:40:09 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:47 +0100
commit82cbc81b3d291ee86785bc6412de41a5e1516d67 (patch)
tree2282964ded3c901e0f88fa3b9a7cfcfa7786403f /functions
parent74f7986e692305050019cca2c9c74868782e98e9 (diff)
downloadlive-build-82cbc81b3d291ee86785bc6412de41a5e1516d67.zip
live-build-82cbc81b3d291ee86785bc6412de41a5e1516d67.tar.gz
Deprecating all dashed forms of commands.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/legacy.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/functions/legacy.sh b/functions/legacy.sh
new file mode 100755
index 0000000..422c20d
--- /dev/null
+++ b/functions/legacy.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# legacy.sh - handle live-helper 2.x warnigns
+# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
+#
+# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+# This is free software, and you are welcome to redistribute it
+# under certain conditions; see COPYING for details.
+
+# Obsoleting 'lh_foo_bar' calls in favour for 'lh foo_bar'
+
+BASENAME="$(basename ${0})"
+
+if [ -z "${LH}" ] && [ "$(echo ${BASENAME} | awk '{ print $1 }')" != "lh" ]
+then
+ Echo_warning "live-helper 2.0 will deprecate all dashed forms of commands."
+ Echo_warning "Please use \'$(echo ${BASENAME} | sed -e 's|lh_|lh |')\' instead of \'${BASENAME}\'."
+fi