[arch-commits] Commit in datemath/repos (8 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Tue Jul 1 10:49:25 UTC 2014


    Date: Tuesday, July 1, 2014 @ 12:49:24
  Author: spupykin
Revision: 113961

archrelease: copy trunk to community-i686, community-x86_64

Added:
  datemath/repos/community-i686/PKGBUILD
    (from rev 113960, datemath/trunk/PKGBUILD)
  datemath/repos/community-i686/y2k.patch
    (from rev 113960, datemath/trunk/y2k.patch)
  datemath/repos/community-x86_64/PKGBUILD
    (from rev 113960, datemath/trunk/PKGBUILD)
  datemath/repos/community-x86_64/y2k.patch
    (from rev 113960, datemath/trunk/y2k.patch)
Deleted:
  datemath/repos/community-i686/PKGBUILD
  datemath/repos/community-i686/y2k.patch
  datemath/repos/community-x86_64/PKGBUILD
  datemath/repos/community-x86_64/y2k.patch

----------------------------+
 /PKGBUILD                  |   56 +++++++++++++++++++++++++++++++++++++++++
 /y2k.patch                 |   58 +++++++++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD    |   24 -----------------
 community-i686/y2k.patch   |   29 ---------------------
 community-x86_64/PKGBUILD  |   24 -----------------
 community-x86_64/y2k.patch |   29 ---------------------
 6 files changed, 114 insertions(+), 106 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2014-07-01 10:49:13 UTC (rev 113960)
+++ community-i686/PKGBUILD	2014-07-01 10:49:24 UTC (rev 113961)
@@ -1,24 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Todd Musall <tmusall at comcast.net>
-# Contributor: Todd Musall <tmusall at comcast.net>
-
-pkgname=datemath
-pkgver=2.0.10
-pkgrel=4
-pkgdesc="Command line date and time math utility."
-arch=('i686' 'x86_64')
-url="http://www.unixwiz.net/tools/datemath.html"
-license=("GPL")
-depends=('glibc')
-source=(http://www.unixwiz.net/tools/$pkgname.tar.gz
-	y2k.patch)
-md5sums=('2c369d70a43313b71dbe3c7cc50207de'
-         '87758503414a967f06566b94523fc010')
-
-build() {
-  cd $srcdir
-  patch -Np0 <$srcdir/y2k.patch
-  make
-  install -D -m755 $srcdir/datemath $pkgdir/usr/bin/datemath
-}

Copied: datemath/repos/community-i686/PKGBUILD (from rev 113960, datemath/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2014-07-01 10:49:24 UTC (rev 113961)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Todd Musall <tmusall at comcast.net>
+# Contributor: Todd Musall <tmusall at comcast.net>
+
+pkgname=datemath
+pkgver=2.0.10
+pkgrel=5
+pkgdesc="Command line date and time math utility."
+arch=('i686' 'x86_64')
+url="http://www.unixwiz.net/tools/datemath.html"
+license=("GPL")
+depends=('glibc')
+source=(http://www.unixwiz.net/tools/$pkgname.tar.gz
+	y2k.patch)
+md5sums=('2c369d70a43313b71dbe3c7cc50207de'
+         '87758503414a967f06566b94523fc010')
+
+build() {
+  cd $srcdir
+  patch -Np0 <$srcdir/y2k.patch
+  make
+}
+
+package() {
+  cd $srcdir
+  install -D -m755 $srcdir/datemath $pkgdir/usr/bin/datemath
+}

Deleted: community-i686/y2k.patch
===================================================================
--- community-i686/y2k.patch	2014-07-01 10:49:13 UTC (rev 113960)
+++ community-i686/y2k.patch	2014-07-01 10:49:24 UTC (rev 113961)
@@ -1,29 +0,0 @@
-diff -Naur ../datemath/util.c ./util.c
---- ../datemath/util.c	2004-03-06 18:27:59.000000000 +0100
-+++ ./util.c	2012-08-01 09:37:30.767738221 +0200
-@@ -18,6 +18,7 @@
- #include "defs.h"
- 
- int	century19_year = 40;	/* 0..39 = 2000 / 40..99 = 1999 */
-+static int century;  /* may not be 1900... */
- 
- /*
-  * jultoyymm()
-@@ -35,6 +36,8 @@
- 
- 	if (mdy[YY] < 1900)			/* too early?		*/
- 		mdy[YY] = 1900;
-+    
-+    century = mdy[YY] / 100;
- 
- 	mdy[YY] %= 100;				/* strip off 19xx	*/
- 
-@@ -59,7 +62,7 @@
- 	mdy[YY] = yymm / 100;
- 	mdy[DD] = eflag ? daysinmm(mdy[MM], mdy[YY]) : 1;
- 
--	mdy[YY] += 1900;
-+	mdy[YY] += century * 100;
- 
- 	if (rv = rmdyjul(mdy, &jdate), rv < 0)
- 		die("bad date conversion in yymmtojul-(%d)", rv);

Copied: datemath/repos/community-i686/y2k.patch (from rev 113960, datemath/trunk/y2k.patch)
===================================================================
--- community-i686/y2k.patch	                        (rev 0)
+++ community-i686/y2k.patch	2014-07-01 10:49:24 UTC (rev 113961)
@@ -0,0 +1,29 @@
+diff -Naur ../datemath/util.c ./util.c
+--- ../datemath/util.c	2004-03-06 18:27:59.000000000 +0100
++++ ./util.c	2012-08-01 09:37:30.767738221 +0200
+@@ -18,6 +18,7 @@
+ #include "defs.h"
+ 
+ int	century19_year = 40;	/* 0..39 = 2000 / 40..99 = 1999 */
++static int century;  /* may not be 1900... */
+ 
+ /*
+  * jultoyymm()
+@@ -35,6 +36,8 @@
+ 
+ 	if (mdy[YY] < 1900)			/* too early?		*/
+ 		mdy[YY] = 1900;
++    
++    century = mdy[YY] / 100;
+ 
+ 	mdy[YY] %= 100;				/* strip off 19xx	*/
+ 
+@@ -59,7 +62,7 @@
+ 	mdy[YY] = yymm / 100;
+ 	mdy[DD] = eflag ? daysinmm(mdy[MM], mdy[YY]) : 1;
+ 
+-	mdy[YY] += 1900;
++	mdy[YY] += century * 100;
+ 
+ 	if (rv = rmdyjul(mdy, &jdate), rv < 0)
+ 		die("bad date conversion in yymmtojul-(%d)", rv);

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2014-07-01 10:49:13 UTC (rev 113960)
+++ community-x86_64/PKGBUILD	2014-07-01 10:49:24 UTC (rev 113961)
@@ -1,24 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Todd Musall <tmusall at comcast.net>
-# Contributor: Todd Musall <tmusall at comcast.net>
-
-pkgname=datemath
-pkgver=2.0.10
-pkgrel=4
-pkgdesc="Command line date and time math utility."
-arch=('i686' 'x86_64')
-url="http://www.unixwiz.net/tools/datemath.html"
-license=("GPL")
-depends=('glibc')
-source=(http://www.unixwiz.net/tools/$pkgname.tar.gz
-	y2k.patch)
-md5sums=('2c369d70a43313b71dbe3c7cc50207de'
-         '87758503414a967f06566b94523fc010')
-
-build() {
-  cd $srcdir
-  patch -Np0 <$srcdir/y2k.patch
-  make
-  install -D -m755 $srcdir/datemath $pkgdir/usr/bin/datemath
-}

Copied: datemath/repos/community-x86_64/PKGBUILD (from rev 113960, datemath/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2014-07-01 10:49:24 UTC (rev 113961)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Todd Musall <tmusall at comcast.net>
+# Contributor: Todd Musall <tmusall at comcast.net>
+
+pkgname=datemath
+pkgver=2.0.10
+pkgrel=5
+pkgdesc="Command line date and time math utility."
+arch=('i686' 'x86_64')
+url="http://www.unixwiz.net/tools/datemath.html"
+license=("GPL")
+depends=('glibc')
+source=(http://www.unixwiz.net/tools/$pkgname.tar.gz
+	y2k.patch)
+md5sums=('2c369d70a43313b71dbe3c7cc50207de'
+         '87758503414a967f06566b94523fc010')
+
+build() {
+  cd $srcdir
+  patch -Np0 <$srcdir/y2k.patch
+  make
+}
+
+package() {
+  cd $srcdir
+  install -D -m755 $srcdir/datemath $pkgdir/usr/bin/datemath
+}

Deleted: community-x86_64/y2k.patch
===================================================================
--- community-x86_64/y2k.patch	2014-07-01 10:49:13 UTC (rev 113960)
+++ community-x86_64/y2k.patch	2014-07-01 10:49:24 UTC (rev 113961)
@@ -1,29 +0,0 @@
-diff -Naur ../datemath/util.c ./util.c
---- ../datemath/util.c	2004-03-06 18:27:59.000000000 +0100
-+++ ./util.c	2012-08-01 09:37:30.767738221 +0200
-@@ -18,6 +18,7 @@
- #include "defs.h"
- 
- int	century19_year = 40;	/* 0..39 = 2000 / 40..99 = 1999 */
-+static int century;  /* may not be 1900... */
- 
- /*
-  * jultoyymm()
-@@ -35,6 +36,8 @@
- 
- 	if (mdy[YY] < 1900)			/* too early?		*/
- 		mdy[YY] = 1900;
-+    
-+    century = mdy[YY] / 100;
- 
- 	mdy[YY] %= 100;				/* strip off 19xx	*/
- 
-@@ -59,7 +62,7 @@
- 	mdy[YY] = yymm / 100;
- 	mdy[DD] = eflag ? daysinmm(mdy[MM], mdy[YY]) : 1;
- 
--	mdy[YY] += 1900;
-+	mdy[YY] += century * 100;
- 
- 	if (rv = rmdyjul(mdy, &jdate), rv < 0)
- 		die("bad date conversion in yymmtojul-(%d)", rv);

Copied: datemath/repos/community-x86_64/y2k.patch (from rev 113960, datemath/trunk/y2k.patch)
===================================================================
--- community-x86_64/y2k.patch	                        (rev 0)
+++ community-x86_64/y2k.patch	2014-07-01 10:49:24 UTC (rev 113961)
@@ -0,0 +1,29 @@
+diff -Naur ../datemath/util.c ./util.c
+--- ../datemath/util.c	2004-03-06 18:27:59.000000000 +0100
++++ ./util.c	2012-08-01 09:37:30.767738221 +0200
+@@ -18,6 +18,7 @@
+ #include "defs.h"
+ 
+ int	century19_year = 40;	/* 0..39 = 2000 / 40..99 = 1999 */
++static int century;  /* may not be 1900... */
+ 
+ /*
+  * jultoyymm()
+@@ -35,6 +36,8 @@
+ 
+ 	if (mdy[YY] < 1900)			/* too early?		*/
+ 		mdy[YY] = 1900;
++    
++    century = mdy[YY] / 100;
+ 
+ 	mdy[YY] %= 100;				/* strip off 19xx	*/
+ 
+@@ -59,7 +62,7 @@
+ 	mdy[YY] = yymm / 100;
+ 	mdy[DD] = eflag ? daysinmm(mdy[MM], mdy[YY]) : 1;
+ 
+-	mdy[YY] += 1900;
++	mdy[YY] += century * 100;
+ 
+ 	if (rv = rmdyjul(mdy, &jdate), rv < 0)
+ 		die("bad date conversion in yymmtojul-(%d)", rv);




More information about the arch-commits mailing list