diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-09-10 09:11:41 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-09-10 09:11:41 +0000 |
commit | e70de765f54c993bfe2e49e3f2bd498a3d895f2d (patch) | |
tree | bc4293f5650eac45840137dac38ad87754961949 /eclass/java-pkg.eclass | |
parent | version bump, closes #59430. also installs sample wrapper scripts now (diff) | |
download | historical-e70de765f54c993bfe2e49e3f2bd498a3d895f2d.tar.gz historical-e70de765f54c993bfe2e49e3f2bd498a3d895f2d.tar.bz2 historical-e70de765f54c993bfe2e49e3f2bd498a3d895f2d.zip |
replaced exit with die. die when so file can't be found
Diffstat (limited to 'eclass/java-pkg.eclass')
-rw-r--r-- | eclass/java-pkg.eclass | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass index 89d5deb1fea0..d5d03f8e9dae 100644 --- a/eclass/java-pkg.eclass +++ b/eclass/java-pkg.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.12 2004/09/09 12:38:25 axxo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.13 2004/09/10 09:11:41 axxo Exp $ inherit base ECLASS=java-pkg @@ -80,8 +80,7 @@ java-pkg_doso() # Check for arguments if [ -z "$*" ] ; then - echo "${0}: at least one argument needed" - exit 1 + die "at least one argument needed" fi # Make sure directory is created @@ -93,7 +92,7 @@ java-pkg_doso() mysrc=$(java-pkg_do_getsrc_) # Install files - install -m 0644 "${mysrc}" "${D}${sodest}" + install -m 0755 "${mysrc}" "${D}${sodest}" || die "${mysrc} not found" done lp_pkg="${sodest}" @@ -149,8 +148,7 @@ java-pkg_dojar() # Check for arguments if [ -z "$*" ] ; then - echo "${0}: at least one argument needed" - exit 1 + die "at least one argument needed" fi # Make sure directory is created @@ -182,8 +180,7 @@ java-pkg_dowar() # Check for arguments if [ -z "$*" ] ; then - echo "${0}: at least one argument needed" - exit 1 + die "at least one argument needed" fi if [ -z "${WARDESTTREE}" ] ; then |