diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-06-19 03:23:07 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-06-19 03:23:07 +0000 |
commit | d49840fc0ab577550c1b27cd186d04964c08a7e4 (patch) | |
tree | 36e95decf98c60a29dd5418ab8ca450bffde53a3 /specgen.sh | |
parent | f4f4b5ff37b19df733987670a5689e3f49de55ca (diff) | |
download | fetchmail-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
Diffstat (limited to 'specgen.sh')
-rwxr-xr-x | specgen.sh | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |