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

skayser at users.sourceforge.net skayser at users.sourceforge.net
Sun Aug 14 20:12:34 CEST 2011


Revision: 511
          http://opencsw.svn.sourceforge.net/opencsw/?rev=511&view=rev
Author:   skayser
Date:     2011-08-14 18:12:33 +0000 (Sun, 14 Aug 2011)

Log Message:
-----------
mgar: changed newpkg to always operate relative to $BUILDTREE

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

Modified: gar-wrapper/CHANGES
===================================================================
--- gar-wrapper/CHANGES	2011-08-14 18:05:25 UTC (rev 510)
+++ gar-wrapper/CHANGES	2011-08-14 18:12:33 UTC (rev 511)
@@ -1,4 +1,6 @@
 Changes since 0.92 (r380):
+* 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
   a non-package directory
 * Added package version to "version" command

Modified: gar-wrapper/mgar
===================================================================
--- gar-wrapper/mgar	2011-08-14 18:05:25 UTC (rev 510)
+++ gar-wrapper/mgar	2011-08-14 18:12:33 UTC (rev 511)
@@ -534,7 +534,7 @@
 # global-cmds
             index) build_index "$BUILDTREE";;
            locate) shift; search_index "$BUILDTREE" "${1-}";;
-           newpkg) shift; newpkg ${1:-} ${2:-};;
+           newpkg) shift; cd "$BUILDTREE" && newpkg ${1:-} ${2:-};;
      show-pkgtree) echo "$BUILDTREE";;
               scm) shift; svn $@;;
                up) if [ "${2:-}" == "--all" ]; then


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