summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2009-10-26 07:30:42 +0000
committerPetter Reinholdtsen <pere@hungry.com>2009-10-26 07:30:42 +0000
commitaec8c61cfa9bc61fb3b99f7bd03e119d58de71d3 (patch)
treecb2e7c15a7ee5318547481777b6fd7e61e366c89
parent8206825ca56dbbdac3d2a4fe016cdba44e1e7b8d (diff)
Improve script a bit.
-rw-r--r--makefront/makefront.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/makefront/makefront.sh b/makefront/makefront.sh
index 3dea6e0..da8343f 100644
--- a/makefront/makefront.sh
+++ b/makefront/makefront.sh
@@ -1,6 +1,9 @@
#!/bin/bash
-LANG=nb_NO
+set -e
+
+LANG=nb_NO
+export LANG
# Makefront av Hans-Petter "Atluxity" Fjeld <atluxity@gmail.com>
# CC-BY-SA 3.0
@@ -27,10 +30,10 @@ echo "Laget trinn 2 av 3..."
#timeplace="Tid og sted"
#Spør om input til variabler
-echo "Skriv inn navnet på foredragsholder: "
+echo "Skriv inn navnet på foredragsholder (maks 25 tegn): "
read presenter
-echo "Skriv inn tittelen til foredraget: "
+echo "Skriv inn tittelen til foredraget (maks 25 tegn): "
read title
echo "Skriv inn tid for foredraget: (`date +%d.\ %B\ %Y`)"
@@ -50,7 +53,8 @@ fi
#Sette tekst på bildet
echo "Setter teksten på bildet..."
convert NUUG-vid_front${count}.png -pointsize 72 -fill white -draw "text 400,167 '${presenter}'" -draw "text 400,267 '${title}'" -pointsize 40 -draw "text 400,567 '${timeplace}'" NUUG-vid_front${count}.png
-echo "Laget trinn 3 av 3."
+echo "Laget trinn 3 av 3 (NUUG-vid_front${count}.png opprettet)."
echo "Makefront avslutter"
-exit
+
+exit 0