aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-19 03:23:07 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-19 03:23:07 +0000
commitd49840fc0ab577550c1b27cd186d04964c08a7e4 (patch)
tree36e95decf98c60a29dd5418ab8ca450bffde53a3
parentf4f4b5ff37b19df733987670a5689e3f49de55ca (diff)
downloadfetchmail-d49840fc0ab577550c1b27cd186d04964c08a7e4.tar.gz
fetchmail-d49840fc0ab577550c1b27cd186d04964c08a7e4.tar.bz2
fetchmail-d49840fc0ab577550c1b27cd186d04964c08a7e4.zip
Make sure we're using a non-localized date. Allow overrides for user, domain,
and name by using FM_USER, FM_NAME, FM_DOMAIN from the environment. svn path=/trunk/; revision=3908
-rwxr-xr-xspecgen.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/specgen.sh b/specgen.sh
index 5134e6df..58f4a480 100755
--- a/specgen.sh
+++ b/specgen.sh
@@ -1,11 +1,16 @@
#!/bin/sh
-user=`whoami`
-name=`grep "^${user}:" /etc/passwd | cut -d: -f5|sed -e 's/^.*,//'`
-domain=mail.berlios.de
+user=${FM_USER:=`whoami`}
+name=${FM_NAME:=`grep "^${user}:" /etc/passwd | cut -d: -f5|sed -e
+'s/^.*,//'`}
+domain=${FM_DOMAIN:=mail.berlios.de}
email="$user@$domain"
packager="$name <$email>"
+LANG=C
+LC_TIME=C
+export LANG LC_TIME
+
cat <<EOF
# Note: Do not hack fetchmail.spec by hand -- it's generated by specgen.sh
Name: fetchmail