2011-07-13 | Paul Boddie | raw annotate files changeset graph | Made it possible to make a UML image from a root install. Changed root operations to invoke sudo internally where appropriate or to invoke other scripts using a --root option. Moved the root user-do functionality into a separate script. Added some help texts. Fixed echo statements to use standard error for messages. |
1 #!/bin/sh 2 # Usage: user-path <path-inside-package-root> 3 4 # Configuration: 5 if [ -e userinstall-defaults ]; then 6 . "$PWD/userinstall-defaults" 7 elif [ -e /etc/default/userinstall ]; then 8 . /etc/default/userinstall 9 else 10 echo "No defaults found for userinstall." 1>&2 11 exit 1 12 fi 13 14 echo "$PACKAGEROOT/$1"