summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-01 18:36:02 +0100
committertv <tv@nomic.retiolum>2013-11-01 18:36:02 +0100
commitff0f82e81b075aca030674af6f3b1bee14a644ff (patch)
treee58d0a2b01965cfb11fa7acf1ccc968baf80f8cc
parent32c3a9c8a849966f7f80c2318b833af3a6a4e77e (diff)
make-realwallpaper define maps for *.config once
-rwxr-xr-xutil/bin/make-realwallpaper19
1 files changed, 12 insertions, 7 deletions
diff --git a/util/bin/make-realwallpaper b/util/bin/make-realwallpaper
index 6e1abf40..e1e3f5c2 100755
--- a/util/bin/make-realwallpaper
+++ b/util/bin/make-realwallpaper
@@ -84,13 +84,18 @@ main() {
ln $normal $final
done
+ map=daymap-final.png
+ night_map=nightmap-final.png
+ cloud_map=clouds-final.png
+ satellite_file=krebs.sat
+
# create xplanet output
cat >xplanet.config <<EOF
[earth]
"Earth"
-map=daymap-final.png
-night_map=nightmap-final.png
-cloud_map=clouds-final.png
+map=$map
+night_map=$night_map
+cloud_map=$cloud_map
cloud_threshold=10
shade=15
EOF
@@ -99,11 +104,11 @@ EOF
cat >xplanet-sat.config <<EOF
[earth]
"Earth"
-map=daymap-final.png
-night_map=nightmap-final.png
-cloud_map=clouds-final.png
-satellite_file=krebs.sat
+map=$map
+night_map=$night_map
+cloud_map=$cloud_map
cloud_threshold=10
+satellite_file=$satellite_file
shade=15
EOF