summaryrefslogtreecommitdiff
path: root/publish
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-13 10:23:46 -0500
committerZach van Rijn <me@zv.io>2021-07-13 10:23:46 -0500
commit723d3f4be5da5be2497e1b036e5418c1d892e199 (patch)
tree406ad38f20f02da97c924b27aea4c96bf7cfca87 /publish
parentd04bc6c86c9b398135ec0566f23a868cbd3e6d60 (diff)
downloadsite-ng-723d3f4be5da5be2497e1b036e5418c1d892e199.tar.gz
site-ng-723d3f4be5da5be2497e1b036e5418c1d892e199.tar.bz2
site-ng-723d3f4be5da5be2497e1b036e5418c1d892e199.tar.xz
site-ng-723d3f4be5da5be2497e1b036e5418c1d892e199.zip
Create new official logo and variations for GitLab and Website. Update scripts accordingly.
Diffstat (limited to 'publish')
-rwxr-xr-xpublish22
1 files changed, 21 insertions, 1 deletions
diff --git a/publish b/publish
index 383ba97..0445f53 100755
--- a/publish
+++ b/publish
@@ -7,7 +7,12 @@ rm -fr ${HTML} ${HTML}.tgz;
mkdir ${HTML};
##
-# .psd --> .jpg
+# Logo
+#
+(cd assets/images && ./polyguin.sh)
+
+##
+# .psd --> .jpg ONLY in 'src/'
#
find ${HERE} -type f -name "*.psd" | while read k; do
f="${k#*${HERE}}";
@@ -16,6 +21,21 @@ find ${HERE} -type f -name "*.psd" | while read k; do
done
##
+# .psd --> .png ONLY in '../assets/'
+#
+# x28 is GitLab
+# x54 is Website
+#
+find ${HERE}/../assets -type f -name "*.psd" | while read k; do
+ f="${k#*${HERE}}";
+ mkdir -p "${HTML}${f%/*}";
+ convert "${k}[0]" "${HTML}${f%*.psd}.png";
+ for r in x28 x54; do
+ convert -resize ${r} "${k}[0]" "${HTML}${f%*.psd}_${r}.png";
+ done
+done
+
+##
# template injection
#
find ${HERE} -type f -name "*.html" | while read k; do