paul@31 | 1 | #!/bin/sh |
paul@22 | 2 | # Usage: user-path <path-inside-package-root> |
paul@7 | 3 | |
paul@63 | 4 | # Copyright (C) 2007, 2010, 2011, 2013 Paul Boddie <paul@boddie.org.uk> |
paul@63 | 5 | # |
paul@63 | 6 | # This program is free software; you can redistribute it and/or modify it under |
paul@63 | 7 | # the terms of the GNU General Public License as published by the Free Software |
paul@63 | 8 | # Foundation; either version 3 of the License, or (at your option) any later |
paul@63 | 9 | # version. |
paul@63 | 10 | # |
paul@63 | 11 | # This program is distributed in the hope that it will be useful, but WITHOUT |
paul@63 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
paul@63 | 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
paul@63 | 14 | # details. |
paul@63 | 15 | # |
paul@63 | 16 | # You should have received a copy of the GNU General Public License along with |
paul@63 | 17 | # this program. If not, see <http://www.gnu.org/licenses/>. |
paul@63 | 18 | |
paul@7 | 19 | # Configuration: |
paul@7 | 20 | if [ -e userinstall-defaults ]; then |
paul@31 | 21 | . "$PWD/userinstall-defaults" |
paul@10 | 22 | elif [ -e /etc/default/userinstall ]; then |
paul@31 | 23 | . /etc/default/userinstall |
paul@7 | 24 | else |
paul@34 | 25 | echo "No defaults found for userinstall." 1>&2 |
paul@7 | 26 | exit 1 |
paul@7 | 27 | fi |
paul@7 | 28 | |
paul@30 | 29 | echo "$PACKAGEROOT/$1" |