svn path=/main/branches/prefix/; revision=2336
install -d "${dir}"
fi
+ret=0
for x in "$@" ; do
if [ -s "${x}" ] ; then
install -m0644 "${x}" "${dir}"
gzip -f -9 "${dir}/${x##*/}"
elif [ ! -e "${x}" ] ; then
echo "dodoc: ${x} does not exist" 1>&2
+ ((++ret))
fi
done
+
+exit ${ret}
import getopt, os, sys
-if len(sys.argv)<=2:
- print "expecting two arguments."
+if len(sys.argv) <= 2:
+ print "Usage: ebuild <ebuild file> <command> [command] ..."
+ print ""
+ print "See the ebuild(1) man page for more info"
sys.exit(1)
# DO NOT CHANGE CODE BEYOND THIS POINT - IT'S NOT NEEDED!
#
-def usage():
+def usage(argv):
rev="$Revision: 1.13.2.1 $"
ver=string.split(rev, ' ')[1]
print ">>> Portage information query tool -- version "+ver
def main():
if (len(sys.argv) < 2):
- usage()
+ usage(sys.argv)
sys.exit()
cmd = sys.argv[1]
export PKGDIR=$(portageq envvar PKGDIR)
export PORTAGE_TMPDIR=$(portageq envvar PORTAGE_TMPDIR)
-source @PORTAGE_BASE@/bin/isolated-functions.sh
+source @PORTAGE_BASE@/sbin/functions.sh
# here we make a package given a little info
# $1 = package-name w/version