3 PATH="$PATH:/usr/libexec/zpm"
6 [ -z "$1" ] && set help
15 # parse command line options
17 # read in config files
19 test -r /etc/zpmrc && . /etc/zpmrc
20 test -r $HOME/.zpmrc && . $HOME/zpmrc
21 test -r .zpmrc && . .zpmrc
25 ecmd=$(command -v "zpm-$cmd") && { exec "$ecmd" "$@" || die "$0: unknown command zpm help"; }
26 find $(echo $PATH | tr ':' ' ') -maxdepth 1 -type f -name 'zpm-*' -executable -printf '%P\n'
29 ecmd=$(command -v "zpm-$cmd") || die "$0: unknown command $cmd $@"
30 exec "$ecmd" "$@" || die "$0: could not exec $ecmd"
36 note: add/edit a note file, - from stdin, list if none
37 ack: acknowledge a note file
40 build a package from source
41 - take file names on stdin and build package from them
42 - <name> repackage an installed package
44 install: install a package, - <name> for from a file
46 remove: remove a package
48 db: edit package databases used for finding packages
50 info: get information on a package
52 track: add a package to config tracked packages
54 add: add to a repository/database
56 clean: clean a repository/database
58 update: update a package, or all if no name