SOURCES: find-java-req.sh, find-java-prov.sh - cleanup unused code

glen glen at pld-linux.org
Wed Apr 11 00:00:12 CEST 2007


Author: glen                         Date: Tue Apr 10 22:00:12 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- cleanup unused code

---- Files affected:
SOURCES:
   find-java-req.sh (1.5 -> 1.6) , find-java-prov.sh (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/find-java-req.sh
diff -u SOURCES/find-java-req.sh:1.5 SOURCES/find-java-req.sh:1.6
--- SOURCES/find-java-req.sh:1.5	Tue Apr 10 23:53:55 2007
+++ SOURCES/find-java-req.sh	Wed Apr 11 00:00:07 2007
@@ -7,49 +7,6 @@
 
 export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
 
-IGNORE_DEPS="@"
-BUILDROOT="/"
-
-# Loop over all args
-while :; do
-# Break out if there are no more args
-	case $# in
-	0)
-		break
-		;;
-	esac
-
-# Get the first arg, and shuffle
-	option=$1
-	shift
-
-# Make all options have two hyphens
-	orig_option=$option	# Save original for error messages
-	case $option in
-	--*) ;;
-	-*) option=-$option ;;
-	esac
-
-	case $option in
-	--buildroot)
-		BUILDROOT=$1
-		shift
-		;;
-	--ignore_deps)
-		IGNORE_DEPS=$1
-		shift
-		;;
-	--help)
-		echo $usage
-		exit 0
-		;;
-	*)
-		echo "$0: Unrecognized option: \"$orig_option\"; use --help for usage." >&2
-		exit 1
-		;;
-	esac
-done
-
 javaclassversion() {
 	local ver
 	classver=$(file "$@" | grep -o 'compiled Java class data, version [0-9.]*' | awk '{print $NF}' | sort -u)
@@ -82,4 +39,4 @@
 		javadeps --requires --rpmformat --keywords $file
 	;;
 	esac
-done | sort -u | egrep -v \'$IGNORE_DEPS\'
+done | sort -u

================================================================
Index: SOURCES/find-java-prov.sh
diff -u SOURCES/find-java-prov.sh:1.1 SOURCES/find-java-prov.sh:1.2
--- SOURCES/find-java-prov.sh:1.1	Tue Apr 10 23:53:20 2007
+++ SOURCES/find-java-prov.sh	Wed Apr 11 00:00:07 2007
@@ -7,49 +7,6 @@
 
 export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
 
-IGNORE_DEPS="@"
-BUILDROOT="/"
-
-# Loop over all args
-while :; do
-# Break out if there are no more args
-	case $# in
-	0)
-		break
-		;;
-	esac
-
-# Get the first arg, and shuffle
-	option=$1
-	shift
-
-# Make all options have two hyphens
-	orig_option=$option	# Save original for error messages
-	case $option in
-	--*) ;;
-	-*) option=-$option ;;
-	esac
-
-	case $option in
-	--buildroot)
-		BUILDROOT=$1
-		shift
-		;;
-	--ignore_deps)
-		IGNORE_DEPS=$1
-		shift
-		;;
-	--help)
-		echo $usage
-		exit 0
-		;;
-	*)
-		echo "$0: Unrecognized option: \"$orig_option\"; use --help for usage." >&2
-		exit 1
-		;;
-	esac
-done
-
 for file in $(cat -); do
 	case $file in
 	*.jar)
@@ -59,4 +16,4 @@
 		javadeps --provides --rpmformat --keywords --starprov $file
 	;;
 	esac
-done | sort -u | egrep -v \'$IGNORE_DEPS\'
+done | sort -u
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/find-java-req.sh?r1=1.5&r2=1.6&f=u
    http://cvs.pld-linux.org/SOURCES/find-java-prov.sh?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list