[csw-devel] SF.net SVN: gar:[8610] csw/mgar/gar/v2-checkpkg-stats/bin/custom-pkgtrans

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Feb 17 08:55:58 CET 2010


Revision: 8610
          http://gar.svn.sourceforge.net/gar/?rev=8610&view=rev
Author:   wahwah
Date:     2010-02-17 07:55:58 +0000 (Wed, 17 Feb 2010)

Log Message:
-----------
mGAR v2-checkpkg-stats: custom-pkgtrans can't handle 'all'

Modified Paths:
--------------
    csw/mgar/gar/v2-checkpkg-stats/bin/custom-pkgtrans

Modified: csw/mgar/gar/v2-checkpkg-stats/bin/custom-pkgtrans
===================================================================
--- csw/mgar/gar/v2-checkpkg-stats/bin/custom-pkgtrans	2010-02-17 00:26:11 UTC (rev 8609)
+++ csw/mgar/gar/v2-checkpkg-stats/bin/custom-pkgtrans	2010-02-17 07:55:58 UTC (rev 8610)
@@ -12,7 +12,11 @@
 . "${libshdir}/libcheckpkg.sh"
 
 if [[ -z "$1" || -z "$2" || -z "$3" ]]; then
-	print "usage: $0 <file.pkg> <targetdir> <pkgname>"
+	print >&2 "usage: $0 <file.pkg> <targetdir> <pkgname>"
 	exit 1
 fi
+if [[ "$3" == "all" ]]; then
+  print >&2 "This script can't handle 'all' as the third argument"
+  exit 1
+fi
 custom_pkgtrans "$1" "$2" "$3"


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