[csw-devel] SF.net SVN: opencsw:[313] gar-wrapper/mgar

skayser at users.sourceforge.net skayser at users.sourceforge.net
Mon Feb 21 14:56:02 CET 2011


Revision: 313
          http://opencsw.svn.sourceforge.net/opencsw/?rev=313&view=rev
Author:   skayser
Date:     2011-02-21 13:56:02 +0000 (Mon, 21 Feb 2011)

Log Message:
-----------
mgar: add edit-file/find-file (contributed by Maciej)

Modified Paths:
--------------
    gar-wrapper/mgar

Modified: gar-wrapper/mgar
===================================================================
--- gar-wrapper/mgar	2011-02-21 13:37:25 UTC (rev 312)
+++ gar-wrapper/mgar	2011-02-21 13:56:02 UTC (rev 313)
@@ -39,6 +39,7 @@
 set -u
 set -e
 
+EDITOR=${EDITOR:-vim}
 PATH=$PATH:/opt/csw/bin
 DEF_BUILDTREE=~/opencsw
 GAR_REPO=https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/
@@ -261,8 +262,11 @@
   platforms           Assemble packages for all platforms
   clean               Reset current directory working files (current platform)
   spotless            Reset the package build directory (all platforms)
+
   show-srcdir         Show the location of the extracted package source
   show-stagedir       Show the location of the package staging directory
+  find-file <name>    Find a file within the extracted package source
+  edit-file <name>    Edit a file within the extracted package source
 
 Other actions:
   modenv              Display employed compiler options
@@ -322,6 +326,8 @@
 # /global-cmds
 
 # per-pkg-cmds
+        edit-file) $EDITOR `gfind \`get_srcdir\` -name "$2"`;;
+        find-file) gfind "`get_srcdir`" -name "$2";;
     show-buildsys) __rev="`svn info "$BUILDSYS" | grep ^Revision:`"
                    __branch=`svn info "$BUILDSYS" | grep ^URL: | awk -F/ '{ print $(NF-1)"/"$NF }'`
                    echo -e "$BUILDSYS\t($__rev, Branch: $__branch)"


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