SOURCES: adapter - updated from SPECS r1.28

glen glen at pld-linux.org
Wed Sep 24 16:56:09 CEST 2008


Author: glen                         Date: Wed Sep 24 14:56:09 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated from SPECS r1.28

---- Files affected:
SOURCES:
   adapter (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SOURCES/adapter
diff -u SOURCES/adapter:1.3 SOURCES/adapter:1.4
--- SOURCES/adapter:1.3	Wed Feb 13 21:56:23 2008
+++ SOURCES/adapter	Wed Sep 24 16:56:03 2008
@@ -1,8 +1,8 @@
 #!/bin/sh
 #
-# This is adapter v0.29. Adapter adapts .spec files for PLD Linux.
+# This is adapter v0.30-RELEASE. Adapter adapts .spec files for PLD Linux.
 #
-# Copyright (C) 1999-2003 PLD-Team <feedback at pld-linux.org>
+# Copyright (C) 1999-2008 PLD Team <feedback at pld-linux.org>
 # Authors:
 # 	Michał Kuratczyk <kura at pld.org.pl>
 # 	Sebastian Zagrodzki <s.zagrodzki at mimuw.edu.pl>
@@ -83,7 +83,7 @@
 	 s,^@@ ,&,g;
 	 s,^-,&,;
 	 s,^+,&,;
-	 s,
,^M,g;
+	 s,\r,^M,g;
 	 s,	,    ,g;
 	 s,\([^[:space:]]\)\([[:space:]]\+\)$,\1\2,g;
 	 s,$,,
@@ -189,10 +189,12 @@
 	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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/adapter?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list