commit b4d9accae59649fa72b65bd6163465efe519e1e2
Author: Adam Gołębiowski <[email protected]>
Date:   Tue Jun 3 14:34:17 2008 +0000

    - append .spec where necessary
    
    Changed files:
        adapter.sh -> 1.27

 adapter.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/adapter.sh b/adapter.sh
index ad4a429..f7d23ef 100644
--- a/adapter.sh
+++ b/adapter.sh
@@ -189,10 +189,12 @@ adapterize()
        rm -rf $tmpdir
 }
 
-if [ $# -ne 1 -o ! -f "$1" ]; then
+SPECFILE="$1"
+[ -f "$SPECFILE" ] || SPECFILE="$(basename $SPECFILE .spec).spec"
+
+if [ $# -ne 1 -o ! -f "$SPECFILE" ]; then
        echo "$usage"
        exit 1
 fi
 
-SPECFILE="$1"
 adapterize
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to