[pacman-dev] bacman

carlocci carlocci at gmail.com
Thu May 29 17:55:21 EDT 2008


Hello,
as I wanted to learn a little about general shell scripting, with the
great help of shining and Allan I wrote this script which rebuilds a
package using the meta data in the pacman database and actual system
files.
Forum discussion: http://bbs.archlinux.org/viewtopic.php?id=49168
Script: http://pastebin.com/m3f763692
Thanks for your time,

Carlo "carlocci" Bersani


PS: Here's the patch for the autocompletition
--- pacman	2008-05-29 23:49:22.000000000 +0200
+++ pacman.new	2008-05-29 23:48:58.000000000 +0200
@@ -361,3 +361,13 @@
 }
 complete -o filenames -F _pacman pacman

+## bacman completition
+
+_bacman ()
+{
+  cur=${COMP_WORDS[COMP_CWORD]}
+  _installed_pkgs
+}
+
+complete -o filenames -F _bacman bacman
+




More information about the pacman-dev mailing list