]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- getting spec file now work.
authorkloczek <kloczek@pld-linux.org>
Tue, 1 Jun 1999 21:21:27 +0000 (21:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.20

builder.sh

index d8bd1e9307d822f50448860c2efe959d7e227fc6..3d5e74c85b0249a1545950b28915a3a466369167 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -xv
 # -----------
 # Exit codes:
 #      0 - succesful
@@ -116,10 +116,11 @@ Group:            -
 echo SOURCE_DIR=%{_sourcedir}
 echo SPECS_DIR=%{_specdir}" > $DUMB_SPEC_FILE
 
-    SOURCE_DIR=`rpm -bp $DUMB_SPEC_FILE | grep "SOURCE_DIR"`
-    SPEC_DIR=`rpm -bp $DUMB_SPEC_FILE | grep "SPECS_DIR"`
+    SOURCE_DIR=`rpm -bp $DUMB_SPEC_FILE 2>&1 | grep "^SOURCE_DIR" | sed "s/SOURCE_DIR\=//"`
+    SPECS_DIR=`rpm -bp $DUMB_SPEC_FILE 2>&1 | grep "^SPECS_DIR" |sed "s/SPECS_DIR\=//"`
 
-    rm -f $DUMB_SPEC_FILE
+echo aaa \"$SPECS_DIR\" 
+#    rm -f $DUMB_SPEC_FILE
 
     __PWD=`pwd`
 }
@@ -128,7 +129,7 @@ get_spec()
 {
     cd $SPECS_DIR
 
-    if [ "${CVSROOT}" != "" ]; then
+    if [ "$CVSROOT" -n "" ]; then
        cvs -d "$CVSROOT" up $SPECFILE
     else
        cvs up $SPECFILE
@@ -142,7 +143,7 @@ get_spec()
 get_all_files()
 {
     cd $SOURCE_DIR
-    if [ "${CVSROOT}" != ""]; then
+    if [ "$CVSROOT" -n ""]; then
        cvs -d "$CVSROOT" up $SOURCES $PATCHES $ICON
     else
        cvs up $SPECFILE
This page took 0.087735 seconds and 4 git commands to generate.