summaryrefslogtreecommitdiffstats
path: root/scripts/makeworld
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makeworld')
-rwxr-xr-xscripts/makeworld24
1 files changed, 20 insertions, 4 deletions
diff --git a/scripts/makeworld b/scripts/makeworld
index 7cf04a76..4591c145 100755
--- a/scripts/makeworld
+++ b/scripts/makeworld
@@ -1,15 +1,19 @@
#!/bin/bash
toplevel=`pwd`
-version="2.2"
+version="2.3"
usage() {
echo "makeworld version $version"
echo "usage: $0 [options] <destdir> <category> [category] ..."
echo "options:"
- echo " -c, --clean Clean up work files after build"
- echo " -i, --install Install package after successful build"
- echo " -h, --help This help"
+ echo " -c, --clean Clean up work files after build"
+ echo " -d, --syncdeps Install missing dependencies with pacman"
+ echo " -b, --builddeps Build missing dependencies from source"
+ echo " -n, --nodeps Skip all dependency checks"
+ echo " -i, --install Install package after successful build"
+ echo " -f, --force Overwrite existing packages"
+ echo " -h, --help This help"
echo
echo " where <category> is one or more directory names under the ABS root"
echo " eg: makeworld -c /packages base lib editors"
@@ -31,6 +35,18 @@ for arg in $*; do
-i|--install)
MAKEPKG_OPTS="$MAKEPKG_OPTS -i"
;;
+ -d|--syncdeps)
+ MAKEPKG_OPTS="$MAKEPKG_OPTS -d"
+ ;;
+ -b|--builddeps)
+ MAKEPKG_OPTS="$MAKEPKG_OPTS -b"
+ ;;
+ -n|--nodeps)
+ MAKEPKG_OPTS="$MAKEPKG_OPTS -n"
+ ;;
+ -f|--force)
+ MAKEPKG_OPTS="$MAKEPKG_OPTS -f"
+ ;;
*)
dest=$arg
shift