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