patches/gnome-pilot-02-pilot-link-version.diff
author hh150184
Tue, 06 Jun 2006 08:02:09 +0000
changeset 7376 609397372f40
permissions -rw-r--r--
* gnome-pilot.spec: Add build depend for gob2. * gob2.spec: New module for GOB. * patches/gnome-pilot-01-all-in-one.diff, patches/gnome-pilot-01-configure-in.diff, patches/gnome-pilot-02-all-in-one.diff, patches/gnome-pilot-02-pilot-link-version.diff, patches/gnome-pilot-03-capplet-install.diff, patches/gnome-pilot-03-pilot-link-version.diff, patches/gnome-pilot-04-capplet-install.diff: Remove patch gnome-pilot-01-configure-in.diff and reorder. * Solaris/SUNWgnome-pilot.spec: Add build depend for SUNWgob2. * Solaris/SUNWgob2.spec: New module.

--- gnome-pilot-2.0.13/acinclude.m4.orig	2006-03-09 02:36:12.427184072 +0000
+++ gnome-pilot-2.0.13/acinclude.m4	2006-03-09 02:36:17.047481680 +0000
@@ -52,10 +52,10 @@
 		piversion_include="pi-version.h"
 	fi
 
-	pi_version=`cat $incdir/pi-version.h|grep PILOT_LINK_VERSION|sed 's/#define PILOT_LINK_VERSION \([[0-9]]*\)/\1/'`
-	pi_major=`cat $incdir/pi-version.h|grep PILOT_LINK_MAJOR|sed 's/#define PILOT_LINK_MAJOR \([[0-9]]*\)/\1/'`
-	pi_minor=`cat $incdir/pi-version.h|grep PILOT_LINK_MINOR|sed 's/#define PILOT_LINK_MINOR \([[0-9]]*\)/\1/'`
-	pi_patch=`cat $incdir/pi-version.h|grep PILOT_LINK_PATCH|sed 's/#define PILOT_LINK_PATCH \"\(.*\)\"/\1/'`
+	pi_version=`cat $incdir/pi-version.h|grep PILOT_LINK_VERSION|head -1|sed 's/#define PILOT_LINK_VERSION \([[0-9]]*\)/\1/'`
+	pi_major=`cat $incdir/pi-version.h|grep PILOT_LINK_MAJOR|head -1|sed 's/#define PILOT_LINK_MAJOR \([[0-9]]*\)/\1/'`
+	pi_minor=`cat $incdir/pi-version.h|grep PILOT_LINK_MINOR|head -1|sed 's/#define PILOT_LINK_MINOR \([[0-9]]*\)/\1/'`
+	pi_patch=`cat $incdir/pi-version.h|grep PILOT_LINK_PATCH|head -1|sed 's/#define PILOT_LINK_PATCH \"\(.*\)\"/\1/'`
 
 	PILOT_LINK_VERSION="$pi_version.$pi_major.$pi_minor$pi_patch"