mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
1ba0d84da2
This rewrite in perl blows the socks off the old shell script version for large searches: $ time ./pacsearch.perl ^.*$ >/dev/null real 0m0.836s user 0m0.593s sys 0m0.217s $ time pacsearch.sh ^.*$ >/dev/null real 1m53.818s user 1m16.818s sys 0m33.694s Functionality and output is identical to the old version with the exception of the old version's missing EOL after all the output. It should be a lot easier to add new things like the --color flag that has been a TODO at the top of the script for a long time. Signed-off-by: Dan McGee <dan@archlinux.org> |
||
---|---|---|
.. | ||
bash_completion | ||
gensync | ||
Makefile.am | ||
pacdiff | ||
pacsearch | ||
PKGBUILD.vim | ||
re-pacman | ||
README | ||
updatesync | ||
vimprojects | ||
wget-xdelta.sh | ||
zsh_completion |
Here is a brief description of the files included in this directory: PKGBUILD.vim - a vim/gvim syntax file for PKGBUILDs. Colors known variable names, highlights common errors such as invalid characters in pkgname or pkgver, etc. bash_completion - a bash completion script for pacman, install in /etc/bash_completion.d/ for use (but rename to something descriptive!). zsh_completion - a zsh completion script, install (with a rename) to /usr/share/zsh/site-functions/. pacdiff - a simple pacnew/pacorig/pacsave updater for /etc/. pacsearch - a colorized search combining both -Ss and -Qs output. Installed packages are easily identified with a *** and local-only packages are also listed. re-pacman - regenerate a pacman package based on installed files and the pacman database entries. Useful for reuse, or possible config file extension. vimprojects - a project file for the vim project plugin. wget-xdelta.sh - A download script for pacman which allows binary deltas generated with makepkg to be used instead of downloading full binary packages. This should cut download sizes for some package upgrades significantly. gensync, updatesync - The former repository management scripts that have since been superseded by repo-add and repo-remove. They are here for posterity's sake, and to show how repo-add and repo-remove can be wrapped in other scripts.