]> Pileus Git - ~andy/fetchmail/commitdiff
Make sure we're using a non-localized date. Allow overrides for user, domain,
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 19 Jun 2004 03:23:07 +0000 (03:23 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 19 Jun 2004 03:23:07 +0000 (03:23 -0000)
and name by using FM_USER, FM_NAME, FM_DOMAIN from the environment.

svn path=/trunk/; revision=3908

specgen.sh

index 5134e6df8d738b939990a454f15d098e573e4b7d..58f4a48064b7ebdcec83ae334dcd66d932f4f9f1 100755 (executable)
@@ -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