SOURCES: gnome-pilot-pilot-link.patch - this one now works
glen
glen at pld-linux.org
Tue Jan 23 10:43:15 CET 2007
Author: glen Date: Tue Jan 23 09:43:15 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- this one now works
---- Files affected:
SOURCES:
gnome-pilot-pilot-link.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/gnome-pilot-pilot-link.patch
diff -u SOURCES/gnome-pilot-pilot-link.patch:1.1 SOURCES/gnome-pilot-pilot-link.patch:1.2
--- SOURCES/gnome-pilot-pilot-link.patch:1.1 Tue Jan 23 10:34:28 2007
+++ SOURCES/gnome-pilot-pilot-link.patch Tue Jan 23 10:43:10 2007
@@ -1,5 +1,5 @@
---- gnome-pilot-2.0.13/acinclude.m4~ 2003-01-26 23:32:20.000000000 +0200
-+++ gnome-pilot-2.0.13/acinclude.m4 2007-01-23 11:29:37.974809889 +0200
+--- gnome-pilot-2.0.13/acinclude.m4 2007-01-23 11:29:37.974809889 +0200
++++ gnome-pilot-2.0.13/acinclude.m4 2007-01-23 11:37:48.065887535 +0200
@@ -52,10 +52,10 @@
piversion_include="pi-version.h"
fi
@@ -8,10 +8,10 @@
- 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/'`
-+ pl_version=`grep "define PILOT_LINK_VERSION" "$incdir/pi-version.h" | cut -d " " -f 3`
-+ pl_major=`grep "define PILOT_LINK_MAJOR" "$incdir/pi-version.h" | cut -d " " -f 3`
-+ pl_minor=`grep "define PILOT_LINK_MINOR" "$incdir/pi-version.h" | cut -d " " -f 3`
-+ pl_patch=`grep "define PILOT_LINK_PATCH" "$incdir/pi-version.h" | cut -d " " -f 3 | sed -e 's/"//g'`
++ pi_version=$(awk '/define PILOT_LINK_VERSION/{print [$]3}' $incdir/pi-version.h)
++ pi_major=$(awk '/define PILOT_LINK_MAJOR/{print [$]3}' $incdir/pi-version.h)
++ pi_minor=$(awk '/define PILOT_LINK_MINOR/{print [$]3}' $incdir/pi-version.h)
++ pi_patch=$(awk '/define PILOT_LINK_PATCH/{print [$]3}' $incdir/pi-version.h | tr -d '"')
PILOT_LINK_VERSION="$pi_version.$pi_major.$pi_minor$pi_patch"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/gnome-pilot-pilot-link.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list