[PATCH] use date -R in mkdeb
Matt Domsch
Matt_Domsch at dell.com
Sun Mar 2 19:20:46 CST 2008
I applied this to my tree tonight. Workaround until this is in an
official release, for those running with LANG!={C,us_EN}, is to use:
LANG=C dkms mkdeb ...
-Matt
>From 808ff52f4d5e1db0d803eafa0ee48b6fe97ac6d9 Mon Sep 17 00:00:00 2001
From: Matt Domsch <Matt_Domsch at dell.com>
Date: Sun, 2 Mar 2008 19:00:47 -0600
Subject: [PATCH] use 'date -R' in mkdeb creating debian/changelog
suggested by realKano at directbox.com to avoid locale issues.
---
dkms | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dkms b/dkms
index 9a9cd3b..9300fb7 100755
--- a/dkms
+++ b/dkms
@@ -2949,7 +2949,7 @@ make_rpm()
function preproc_file()
{
- local date_str=`date "+%a, %d %b %Y %H:%M:%S %z"`
+ local date_str="$(date -R)"
echo "modifying $1..."
sed -e "s/MODULE_NAME/$module/" \
-e "s/MODULE_VERSION/$module_version/" \
--
1.5.3
More information about the DKMS-devel
mailing list