... |
... |
@@ -9,31 +9,27 @@ var_is_defined blog_publish_user blog_directory |
9
|
9
|
content_dir="$blog_directory/content/blog"
|
10
|
10
|
test -d "$content_dir" || exit_error "$content_dir is not a direcotry"
|
11
|
11
|
|
12
|
|
-blog_dir="$content_dir/new-release-tor-browser-"$(echo $tbb_version | sed 's/\.//g')
|
13
|
|
-
|
14
|
|
-test -d "$blog_dir" && exit_error "$blog_dir already exists"
|
15
|
|
-
|
16
|
|
-mkdir "$blog_dir"
|
17
|
|
-echo "Created directory $blog_dir"
|
18
|
|
-
|
19
|
12
|
if test "$tbb_version_type" = "release"
|
20
|
13
|
then
|
|
14
|
+ blog_dir_base="new-release-tor-browser"
|
21
|
15
|
lead=../../../assets/static/images/blog/tor-browser-stable.png
|
22
|
|
-else
|
23
|
|
- lead=../../../assets/static/images/blog/tor-browser-alpha.png
|
24
|
|
-fi
|
25
|
|
-ln -s "$lead" "$blog_dir/lead.png"
|
26
|
|
-echo "Created $blog_dir/lead.png -> $lead"
|
27
|
|
-
|
28
|
|
-
|
29
|
|
-if test "$tbb_version_type" = "release"
|
30
|
|
-then
|
31
|
16
|
title="New Release: Tor Browser $tbb_version"
|
32
|
17
|
download_page='https://www.torproject.org/download/'
|
33
|
18
|
else
|
|
19
|
+ blog_dir_base="new-alpha-release-tor-browser"
|
|
20
|
+ lead=../../../assets/static/images/blog/tor-browser-alpha.png
|
34
|
21
|
title="New Alpha Release: Tor Browser $tbb_version"
|
35
|
22
|
download_page='https://www.torproject.org/download/alpha/'
|
36
|
23
|
fi
|
|
24
|
+blog_dir="$content_dir/$blog_dir_base-"$(echo $tbb_version | sed 's/\.//g')
|
|
25
|
+
|
|
26
|
+test -d "$blog_dir" && exit_error "$blog_dir already exists"
|
|
27
|
+
|
|
28
|
+mkdir "$blog_dir"
|
|
29
|
+echo "Created directory $blog_dir"
|
|
30
|
+
|
|
31
|
+ln -s "$lead" "$blog_dir/lead.png"
|
|
32
|
+echo "Created $blog_dir/lead.png -> $lead"
|
37
|
33
|
|
38
|
34
|
contents_lr="$blog_dir/contents.lr"
|
39
|
35
|
cat > "$contents_lr" << EOF
|