diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..42a2e45 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +indent_style = tab +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c0209d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/plg_system_httpheader.zip diff --git a/README.md b/README.md index 1a65706..b0b6d19 100644 --- a/README.md +++ b/README.md @@ -120,3 +120,12 @@ This plugin has been included in the Joomla Core ([joomla/joomla-cms#18301](http David Jardin - @snipersister - https://www.djumla.de/ & Yves Hoppe - @yvesh - https://compojoom.com/ For giving me the inspiration for the plugin and their feedback on the actual implementation. Thanks :+1: + +## Release steps + +- `build/build.sh` +- `git commit -am 'prepare release HttpHeader 1.0.x'` +- `git tag -s '1.0.x' -m 'HttpHeader 1.0.x'` +- `git push origin --tags` +- create the release on GitHub +- `git push origin master` diff --git a/build/build.sh b/build/build.sh new file mode 100644 index 0000000..055aab8 --- /dev/null +++ b/build/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash +EXTENSION_ZIP_FILENAME="build/plg_system_httpheader.zip" +EXTENSION_ELEMENT="httpheader" +if [ ! -f "$EXTENSION_ELEMENT.xml" ]; then cd ..; fi +if [ -f "$EXTENSION_ZIP_FILENAME" ]; then rm $EXTENSION_ZIP_FILENAME; fi +zip -r $EXTENSION_ZIP_FILENAME language/ "$EXTENSION_ELEMENT.php" "$EXTENSION_ELEMENT.xml" script.php --quiet +SHA512=$(sha512sum $EXTENSION_ZIP_FILENAME | awk '{print $1}') +sed -i -e "s/\(\).*\(<\/sha512>\)/$SHA512<\/sha512>/g" update.xml +echo 'package and update server ready' diff --git a/httpheader.xml b/httpheader.xml index 0be1942..c38de5e 100644 --- a/httpheader.xml +++ b/httpheader.xml @@ -1,11 +1,11 @@ plg_system_httpheader - March 2019 + 24.03.2020 Tobias Zulauf - (C) 2017 - 2019 Tobias Zulauf All rights reserved. + (C) 2017 - 2020 Tobias Zulauf All rights reserved. https://www.jah-tz.de - 1.0.11 + 1.0.12 GNU/GPL Version 2 or later PLG_SYSTEM_HTTPHEADER_XML_DESCRIPTION script.php diff --git a/update.xml b/update.xml index 0e21e2a..e7a15d1 100644 --- a/update.xml +++ b/update.xml @@ -1,24 +1,45 @@ - - - - HttpHeader 1.0.11 - HttpHeader Plugin - httpheader - plugin - system - site - 1.0.11 - https://github.com/zero-24/plg_system_httpheader - - https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip - - 9a3963c18a00b597618576e5ff325c7e93dcc2c933d0e741aa531f7dd2507065e3f945cc7f790571fac42ba193ba846bbd4e6ad1fdac2eacf2204ea5d396e3f7 - - stable - - Tobias Zulauf - https://www.jah-tz.de - 7.0.0 - - - + + + + HttpHeader 1.0.11 + HttpHeader Plugin + httpheader + plugin + system + site + 1.0.11 + https://github.com/zero-24/plg_system_httpheader + + https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip + + a7cce92c0948d254680b1f5515e686d0718926aaccd78fa22837f22b451f6278bfd9d91dcb04423c1160370288d1215b84bc1964eab025d34cf022b36a4702bb + + stable + + Tobias Zulauf + https://www.jah-tz.de + 7.0.0 + + + + HttpHeader 1.0.11 + HttpHeader Plugin + httpheader + plugin + system + site + 1.0.11 + https://github.com/zero-24/plg_system_httpheader + + https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.11/plg_system_httpheader.zip + + a7cce92c0948d254680b1f5515e686d0718926aaccd78fa22837f22b451f6278bfd9d91dcb04423c1160370288d1215b84bc1964eab025d34cf022b36a4702bb + + stable + + Tobias Zulauf + https://www.jah-tz.de + 7.0.0 + + +