SVN: toys/tools/cleanbuild/cleanbuild

sparky sparky at pld-linux.org
Sun May 16 19:00:13 CEST 2010


Author: sparky
Date: Sun May 16 19:00:13 2010
New Revision: 11468

Modified:
   toys/tools/cleanbuild/cleanbuild
Log:
- allow package names with .spec and with paths


Modified: toys/tools/cleanbuild/cleanbuild
==============================================================================
--- toys/tools/cleanbuild/cleanbuild	(original)
+++ toys/tools/cleanbuild/cleanbuild	Sun May 16 19:00:13 2010
@@ -139,6 +139,9 @@
 if $BUILD; then
 	[ $# -ne 0 ] || usage
 	build_pkg="${1}"
+	build_pkg="${build_pkg%/}"
+	build_pkg="${build_pkg%.spec}"
+	build_pkg="${build_pkg#*/}"
 	shift
 
 	builder_options="$*"


More information about the pld-cvs-commit mailing list