]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- avoid syntax errors
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 10 Apr 2007 23:37:02 +0000 (23:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    find-java-req.sh -> 1.8

find-java-req.sh

index d79cff6cec0041f2ba708fdb0935dbf71e86af7f..8f800cbebecacc3cd691bffad3356425e0e468a7 100755 (executable)
@@ -30,7 +30,7 @@ javajarversion() {
 
 FILES=$(cat -)
 
-REQUIRES=$(
+find_requires() {
        for file in $FILES; do
                case $file in
                *.jar)
@@ -43,9 +43,9 @@ REQUIRES=$(
                ;;
                esac
        done | sort -u
-)
+}
 
-PROVIDES=$(
+find_provides() {
        for file in $FILES; do
                case $file in
                *.jar)
@@ -56,7 +56,10 @@ PROVIDES=$(
                ;;
                esac
        done | sort -u
-)
+}
+
+REQUIRES=$(find_requires)
+PROVIDES=$(find_provides)
 
 # This is a little magic trick to get all REQUIRES that are not
 # in PROVIDES. While RPM functions correctly when such deps exist,
This page took 0.125443 seconds and 4 git commands to generate.