Cosmetic changes
authorJulien Valroff <julien@kirya.net>
Fri, 26 Aug 2011 19:31:26 +0000 (21:31 +0200)
committerJulien Valroff <julien@kirya.net>
Fri, 26 Aug 2011 19:31:26 +0000 (21:31 +0200)
uploaded.sh

index aa3d3ea..6d0f5e8 100755 (executable)
@@ -1,10 +1,9 @@
 #!/bin/sh
-
 set -e
 
 MAILTO="debian-uploads@lists.kirya.net"
-
 BASEDIR="/var/www/packages.kirya.net/debian"
+HOST="packages.kirya.net"
 
 TMPF=`mktemp --tmpdir=$BASEDIR/tmp`
 cp $1 $TMPF
@@ -13,14 +12,14 @@ reprepro -b $BASEDIR processincoming kirya
 
 if [ $? = 0 -a -r $TMPF ]; then
 
-       Source=$(grep -m1 ^Source: $TMPF  | awk '{print $2}')
-    Version=$(grep -m1 ^Version: $TMPF  | awk '{print $2}')
-    Architecture=$(grep -m1 ^Architecture: $TMPF  | sed 's/Architecture: //')
+    SOURCE=$(grep -m1 ^Source: $TMPF  | awk '{print $2}')
+    VERSION=$(grep -m1 ^Version: $TMPF  | awk '{print $2}')
+    ARCHITECTURE=$(grep -m1 ^Architecture: $TMPF  | sed 's/Architecture: //')
+    UPLOADER=$(grep -m1 ^Changed-By: $TMPF | sed 's/Changed-By: //')
 
-       Uploader=$(grep -m1 ^Changed-By: $TMPF | sed 's/Changed-By: //')
-       [ -z "$Uploader" ] && Uploader=$(grep -m1 ^Maintainer: $TMPF | sed 's/Maintainer: //')
+       [ -z "$UPLOADER" ] && UPLOADER=$(grep -m1 ^Maintainer: $TMPF | sed 's/Maintainer: //')
 
-    cat $TMPF | mail -a"From: $Uploader" -s"Uploaded $Source $Version ($Architecture) to packages.kirya.net" $MAILTO
+    cat $TMPF | mail -a"From: $UPLOADER" -b"$UPLOADER" -s"Uploaded $SOURCE $VERSION ($ARCHITECTURE) to $HOST" $MAILTO
 
 fi