aboutsummaryrefslogtreecommitdiffstats
path: root/specgen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'specgen.sh')
-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