cvs2rpm patch




For all of you that use DrMike's nifty cvs2rpm build scripts, you may need
this patch to compile gnome-libs now that it includes bits of mc.

- Dick

--- bin.orig/cvs2rpm	Mon Jun  1 14:17:48 1998
+++ bin/cvs2rpm	Wed Aug 12 17:13:59 1998
@@ -54,12 +56,23 @@
 rm -f $TARFILE
 
 # Build the file list for the source tar file
-cvs -z9 status $NAME | 
-awk '/Repository revision/{print $4}' | 
-  sed -e "s:^$PRE::" \
+if [ "$NAME" = "gnome-libs" ]; then
+# Cope with the fact that gnome-libs includes some of mc, but under a different dir...
+  cvs -z3 status $NAME | 
+  awk '/Repository revision/{print $4}' | 
+    sed -e "s:^$PRE::" \
       -e "s:$POST\$::" \
       -e "s:^$NAME:$NAMEVER:" \
+      -e "s:^mc/vfs:$NAMEVER/libvfs:" \
       -e "s:^gnome-common:$NAMEVER:" | grep -v '\/Attic\/' > $TARFILELIST
+else
+  cvs -z3 status $NAME | 
+  awk '/Repository revision/{print $4}' | 
+    sed -e "s:^$PRE::" \
+      -e "s:$POST\$::" \
+      -e "s:^$NAME:$NAMEVER:" \
+      -e "s:^gnome-common:$NAMEVER:" | grep -v '\/Attic\/' > $TARFILELIST
+fi
 
 if [ "$TESTING" != "" ]; then
   echo "$NAMEVER/$NAME.spec" >> $TARFILELIST



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]