[Asterisk-cvs] libpri mkdep,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Wed Feb 2 23:07:56 CST 2005


Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv3046

Modified Files:
	mkdep 
Log Message:
Fix mkdep for dynamic library version (bug #3497)


Index: mkdep
===================================================================
RCS file: /usr/cvsroot/libpri/mkdep,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mkdep	15 Dec 2004 20:15:28 -0000	1.3
+++ mkdep	3 Feb 2005 05:09:05 -0000	1.4
@@ -100,10 +100,22 @@
 		rm -rf $DTMP
 		exit 1
 	fi
+	cat $TMP | sed -e 's/\.o:/.lo:/g' >>$D
+	if [ $? != 0 ]; then
+		echo 'mkdep: append failed.'
+		rm -rf $DTMP
+		exit 1
+	fi
 else
-	mv $TMP $D
+	cat $TMP > $D
 	if [ $? != 0 ]; then
-		echo 'mkdep: rename failed.'
+		echo 'mkdep: overwrite failed.'
+		rm -rf $DTMP
+		exit 1
+	fi
+	cat $TMP | sed -e 's/\.o:/.lo:/g' >>$D
+	if [ $? != 0 ]; then
+		echo 'mkdep: append failed.'
 		rm -rf $DTMP
 		exit 1
 	fi




More information about the svn-commits mailing list