[packages/adapter: 383/631] - make just $adapter variable

glen glen at pld-linux.org
Mon Sep 12 20:06:33 CEST 2016


commit 9f10696c5233be22231bba07992ba4e427b2023e
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Nov 6 15:03:41 2007 +0000

    - make just $adapter variable
    
    Changed files:
        adapter.sh -> 1.23

 adapter.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.sh b/adapter.sh
index 70bbea4..17f8d6e 100644
--- a/adapter.sh
+++ b/adapter.sh
@@ -16,7 +16,7 @@
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 
 self=$(basename "$0")
-dir=$(dirname "$0")
+adapter=$(dirname "$0")/adapter.awk
 usage="Usage: $self [FLAGS] SPECFILE
 
 -s|--no-sort|--skip-sort
@@ -140,7 +140,7 @@ adapterize()
 		awk=awk
 	fi
 	local diff=$tmpdir/$(basename SPECFILE) || exit
-	$awk -f $dir/adapter.awk $SPECFILE > $diff || exit
+	$awk -f $adapter $SPECFILE > $diff || exit
 
 	if [ "$(diff --brief $SPECFILE $diff)" ]; then
 		diff -u $SPECFILE $diff > $diff.diff
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list