[csw-devel] SF.net SVN: opencsw:[533] gar-wrapper

skayser at users.sourceforge.net skayser at users.sourceforge.net
Mon Sep 19 21:49:45 CEST 2011


Revision: 533
          http://opencsw.svn.sourceforge.net/opencsw/?rev=533&view=rev
Author:   skayser
Date:     2011-09-19 19:49:45 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
mgar: add grep-buildsys command

Modified Paths:
--------------
    gar-wrapper/CHANGES
    gar-wrapper/bash_completion.mgar
    gar-wrapper/mgar

Modified: gar-wrapper/CHANGES
===================================================================
--- gar-wrapper/CHANGES	2011-09-19 18:59:01 UTC (rev 532)
+++ gar-wrapper/CHANGES	2011-09-19 19:49:45 UTC (rev 533)
@@ -2,6 +2,7 @@
 * Added package version to "version" command output
 * Added new command "show-var" to display the runtime value of build
   recipe variables (Maciej Blizinski)
+* Added new command "grep-buildsys" to facilitate greping the build system
 * Changed "newpkg" command to run relative to the build tree (not $PWD)
   so that it can be run from anywhere
 * Improved error message when running a package specific command in

Modified: gar-wrapper/bash_completion.mgar
===================================================================
--- gar-wrapper/bash_completion.mgar	2011-09-19 18:59:01 UTC (rev 532)
+++ gar-wrapper/bash_completion.mgar	2011-09-19 19:49:45 UTC (rev 533)
@@ -23,7 +23,7 @@
   misctgts="modenv ccenv"
   mgarcmds="help init index locate up commit show-srcdir show-stagedir"
   mgarcmds="${mgarcmds} find-file edit-file show-buildsys show-pkgtree version"
-  mgarcmds="${mgarcmds} list-categories newpkg show-var"
+  mgarcmds="${mgarcmds} list-categories newpkg show-var grep-buildsys"
   ustreamcmds="check-upstream get-uwatch-configuration"
 
   opts="${buildtgts} ${misctgts} ${mgarcmds} ${ustreamcmds}"

Modified: gar-wrapper/mgar
===================================================================
--- gar-wrapper/mgar	2011-09-19 18:59:01 UTC (rev 532)
+++ gar-wrapper/mgar	2011-09-19 19:49:45 UTC (rev 533)
@@ -63,8 +63,8 @@
 GAR_REPO=https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/
 PKG_REPO=https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/
 
-REQ_TOOLS="gfind ggrep gmake gxargs mknmz namazu svn"
-REQ_PKGS="findutils ggrep gmake namazu subversion"
+REQ_TOOLS="ack gfind ggrep gmake gxargs mknmz namazu svn"
+REQ_PKGS="ack findutils ggrep gmake namazu subversion"
 
 function assert_required_tools {
   local tool dir
@@ -518,6 +518,7 @@
   modenv              Display employed compiler options
   scm <command>       Pass a command to the underlying SCM (currently: svn)
   show-buildsys       Display the location and version of the build system
+  grep-buildsys <str> Search the build system for occurences of <str> (via ack)
   show-pkgtree        Show the location of the package build tree
   version|-V          Display mgar version information
 
@@ -589,6 +590,7 @@
         edit-file) $EDITOR `gfind \`get_srcdir\` -name "$2"`;;
         find-file) gfind "`get_srcdir`" \
                      -name .git -prune -o -name "${2:-*}" -print;;
+    grep-buildsys) shift; ack "$1" "$BUILDSYS";;
   list-categories) ls "$BUILDSYS/categories/";;
     show-buildsys) __rev=`get_rev "$BUILDSYS"`
                    __branch=`get_repourl "$BUILDSYS" | sed -e "s,$GAR_REPO,,"`

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list