[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41203: Tor Blog generation script uses the wrong url scheme for alpha releases

boklm (@boklm) git at gitlab.torproject.org
Sat Aug 3 08:55:45 UTC 2024



boklm pushed to branch main at The Tor Project / Applications / tor-browser-build


Commits:
ce7944ec by Morgan at 2024-08-01T18:36:58+00:00
Bug 41203: Tor Blog generation script uses the wrong url scheme for alpha releases

- - - - -


1 changed file:

- tools/signing/create-blog-post


Changes:

=====================================
tools/signing/create-blog-post
=====================================
@@ -9,31 +9,27 @@ var_is_defined blog_publish_user blog_directory
 content_dir="$blog_directory/content/blog"
 test -d "$content_dir" || exit_error "$content_dir is not a direcotry"
 
-blog_dir="$content_dir/new-release-tor-browser-"$(echo $tbb_version | sed 's/\.//g')
-
-test -d "$blog_dir" && exit_error "$blog_dir already exists"
-
-mkdir "$blog_dir"
-echo "Created directory $blog_dir"
-
 if test "$tbb_version_type" = "release"
 then
+  blog_dir_base="new-release-tor-browser"
   lead=../../../assets/static/images/blog/tor-browser-stable.png
-else
-  lead=../../../assets/static/images/blog/tor-browser-alpha.png
-fi
-ln -s "$lead" "$blog_dir/lead.png"
-echo "Created $blog_dir/lead.png -> $lead"
-
-
-if test "$tbb_version_type" = "release"
-then
   title="New Release: Tor Browser $tbb_version"
   download_page='https://www.torproject.org/download/'
 else
+  blog_dir_base="new-alpha-release-tor-browser"
+  lead=../../../assets/static/images/blog/tor-browser-alpha.png
   title="New Alpha Release: Tor Browser $tbb_version"
   download_page='https://www.torproject.org/download/alpha/'
 fi
+blog_dir="$content_dir/$blog_dir_base-"$(echo $tbb_version | sed 's/\.//g')
+
+test -d "$blog_dir" && exit_error "$blog_dir already exists"
+
+mkdir "$blog_dir"
+echo "Created directory $blog_dir"
+
+ln -s "$lead" "$blog_dir/lead.png"
+echo "Created $blog_dir/lead.png -> $lead"
 
 contents_lr="$blog_dir/contents.lr"
 cat > "$contents_lr" << EOF



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/ce7944ec79f7a605a937ded92c3a79a088360e1a

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/ce7944ec79f7a605a937ded92c3a79a088360e1a
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240803/9a874ffb/attachment-0001.htm>


More information about the tor-commits mailing list