[packages/adapter: 249/631] - enable sortbr by default. works good so far - update usage

glen glen at pld-linux.org
Mon Sep 12 19:55:19 CEST 2016


commit bd6bff929eaa951b336dd475e1c318b776c5388f
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Dec 13 15:03:11 2005 +0000

    - enable sortbr by default. works good so far
    - update usage
    
    Changed files:
        adapter.sh -> 1.12

 adapter.sh | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/adapter.sh b/adapter.sh
index 21a3c5e..813e4c1 100644
--- a/adapter.sh
+++ b/adapter.sh
@@ -1,7 +1,18 @@
 #!/bin/sh
 
 self=$(basename "$0")
-usage="Usage: $self [--sort[-br]|-s|-m|--no-macros] filename"
+usage="Usage: $self [FLAGS] SPECFILE
+
+-s|--no-sort|--skip-sort
+	skip BuildRequires, Requires sorting
+-m|--no-macros|--skip-macros
+	skip use_macros() substitutions
+-d|--skip-desc
+	skip desc wrapping
+-a|--skip-defattr
+	skip %defattr corrections
+
+"
 
 t=`getopt -o hsmda --long help,sort,sort-br,no-macros,skip-macros,skip-desc,skip-defattr -n "$self" -- "$@"` || exit $?
 eval set -- "$t"
@@ -12,8 +23,8 @@ while true; do
  		echo 2>&1 "$usage"
 		exit 1
 	;;
-	-s|--sort|--sort-br)
-		export SORTBR=1
+	-s|--no-sort|--skip-sort)
+		export SKIP_SORTBR=1
 	;;
 	-m|--no-macros|--skip-macros)
 		export SKIP_MACROS=1
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list