Created scripts to allow for deployment of versions of the template
This addresses the issue #19.
This commit is contained in:
parent
1ff64fa26e
commit
2ca0dff6c0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/slt.tar.gz
|
/slt.tar.gz
|
||||||
|
/slt-update.xml
|
||||||
*~
|
*~
|
||||||
|
24
Makefile
24
Makefile
@ -2,6 +2,13 @@
|
|||||||
# UPDATE_PATH=/srv/slt-update
|
# UPDATE_PATH=/srv/slt-update
|
||||||
PACKAGES = slt.tar.gz
|
PACKAGES = slt.tar.gz
|
||||||
|
|
||||||
|
export DL_PREFIX=https://slt.wolf-stuttgart.net/update/template
|
||||||
|
|
||||||
|
RSYNC_OPTIONS=-rltDz --delete --delete-delay --delete-excluded --exclude '.gitignore'
|
||||||
|
RSYNC_USER=christian
|
||||||
|
RSYNC_HOST=hh.wolf-stuttgart.net
|
||||||
|
DL_PATH=/srv/http/slt/update/template
|
||||||
|
|
||||||
all: package
|
all: package
|
||||||
|
|
||||||
package: $(PACKAGES)
|
package: $(PACKAGES)
|
||||||
@ -11,13 +18,24 @@ slt.tar.gz:
|
|||||||
cd slt ; tar czf ../$@ *
|
cd slt ; tar czf ../$@ *
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release:
|
release: slt.tar.gz
|
||||||
./scripts/create-release.sh
|
./scripts/create-release.sh
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload:
|
upload: release
|
||||||
|
$(MAKE) reupload
|
||||||
|
|
||||||
|
.PHONY: slt-update.xml
|
||||||
|
slt-update.xml:
|
||||||
./scripts/create-update-xml.sh
|
./scripts/create-update-xml.sh
|
||||||
# rsync -a releases/ $UPDATE_PATH/rel
|
|
||||||
|
.PHONY: reupload
|
||||||
|
reupload: slt-update.xml
|
||||||
|
@echo Pushing files
|
||||||
|
@rsync $(RSYNC_OPTIONS) releases/ $(RSYNC_USER)@$(RSYNC_HOST):$(DL_PATH)/files -v
|
||||||
|
|
||||||
|
@echo Pushing XML configuration
|
||||||
|
@rsync $(RSYNC_OPTIONS) slt-update.xml $(RSYNC_USER)@$(RSYNC_HOST):$(DL_PATH)
|
||||||
|
|
||||||
#
|
#
|
||||||
# .PHONY: update
|
# .PHONY: update
|
||||||
|
1
res/postfix.template
Normal file
1
res/postfix.template
Normal file
@ -0,0 +1 @@
|
|||||||
|
</updates>
|
2
res/prefix.template
Normal file
2
res/prefix.template
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<updates>
|
16
res/update.template
Normal file
16
res/update.template
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<update>
|
||||||
|
<name>SLT Template</name>
|
||||||
|
<description>Template for the SLT for the Joomla! CMS</description>
|
||||||
|
<element>slt</element>
|
||||||
|
<type>template</type>
|
||||||
|
<client>0</client>
|
||||||
|
<version>__VERSION__</version>
|
||||||
|
<downloads>
|
||||||
|
<downloadurl type="full" format="__FORMAT__">__DOWNLOAD_URL__</downloadurl>
|
||||||
|
</downloads>
|
||||||
|
<tags>
|
||||||
|
<tag>stable</tag>
|
||||||
|
</tags>
|
||||||
|
<maintainer>Christian Wolf</maintainer>
|
||||||
|
<targetplatform name="joomla" version=".*"/>
|
||||||
|
</update>
|
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# DL_PREFIX="https://slt.wolf-stuttgart.net/update/template"
|
||||||
|
|
||||||
|
cat res/prefix.template > slt-update.xml
|
||||||
|
|
||||||
|
find releases -name slt-\* | while read f
|
||||||
|
do
|
||||||
|
|
||||||
|
VSTR=`echo "$f" | sed -E 's@releases/slt-@@; s@^([0-9]+\.[0-9]+\.[0-9]+).*$@\1@'`
|
||||||
|
|
||||||
|
FILE=`echo "$f" | sed 's@releases/@@'`
|
||||||
|
FORMAT=`echo "$f" | sed -E 's@^.*[0-9]+\.[0-9]+\.[0-9]+\.@@'`
|
||||||
|
|
||||||
|
sed '
|
||||||
|
s@__VERSION__@'"$VSTR"'@g;
|
||||||
|
s@__DOWNLOAD_URL__@'"$DL_PREFIX/files/$FILE"'@g;
|
||||||
|
s@__FORMAT__@'"$FORMAT"'@g
|
||||||
|
' res/update.template >> slt-update.xml
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
cat res/postfix.template >> slt-update.xml
|
@ -1 +1 @@
|
|||||||
1
|
3
|
||||||
|
@ -10,15 +10,15 @@
|
|||||||
<name>SLT</name>
|
<name>SLT</name>
|
||||||
<title>SLT</title>
|
<title>SLT</title>
|
||||||
<!--SOLLTE Erstellungsdatum -->
|
<!--SOLLTE Erstellungsdatum -->
|
||||||
<creationDate>11.03.2017</creationDate>
|
<creationDate>25.03.2019</creationDate>
|
||||||
<!-- SOLLTE, Wer ist der Urheber -->
|
<!-- SOLLTE, Wer ist der Urheber -->
|
||||||
<author>Christian Wolf</author>
|
<author>Christian Wolf</author>
|
||||||
<!-- SOLLTE, für ausgelieferte Templates immer eine Kontakt-E-Mail-Adressse -->
|
<!-- SOLLTE, für ausgelieferte Templates immer eine Kontakt-E-Mail-Adressse -->
|
||||||
<authorEmail>christianlupus@web.de</authorEmail>
|
<authorEmail>homepage@slt.wolf-stuttgart.net</authorEmail>
|
||||||
<!-- SOLLTE, klar, die Webseite gehört dazu -->
|
<!-- SOLLTE, klar, die Webseite gehört dazu -->
|
||||||
<!--<authorUrl>http://www.joomla-templates.de</authorUrl>-->
|
<!--<authorUrl>http://www.joomla-templates.de</authorUrl>-->
|
||||||
<!-- SOLLTE, die eigene Versionsnummer des Templates -->
|
<!-- SOLLTE, die eigene Versionsnummer des Templates -->
|
||||||
<version>0.0.2</version>
|
<version>0.0.3</version>
|
||||||
<!-- SOLLTE, Die Template-Beschreibung wird hier als Joomla language mit einem Platzhalter versehen. In diesem Template-Ordner befindet sich die Sprachdatei in der TPL_TEST_TEMPLATE_XML_DESCRIPTION hinterlegt ist -->
|
<!-- SOLLTE, Die Template-Beschreibung wird hier als Joomla language mit einem Platzhalter versehen. In diesem Template-Ordner befindet sich die Sprachdatei in der TPL_TEST_TEMPLATE_XML_DESCRIPTION hinterlegt ist -->
|
||||||
<!--<description>TPL_TEST_TEMPLATE_XML_DESCRIPTION</description>-->
|
<!--<description>TPL_TEST_TEMPLATE_XML_DESCRIPTION</description>-->
|
||||||
<!-- MUSS, der Files-Tag bezeichnet den Block mit den Dateien und Ordnern die mit installiert werden -->
|
<!-- MUSS, der Files-Tag bezeichnet den Block mit den Dateien und Ordnern die mit installiert werden -->
|
||||||
@ -112,7 +112,7 @@
|
|||||||
</fields>
|
</fields>
|
||||||
</config>
|
</config>
|
||||||
<!-- Parameter Block ende -->
|
<!-- Parameter Block ende -->
|
||||||
<!--<updateservers>
|
<updateservers>
|
||||||
<server type="extension" name="slt" priority="1">http://localhost/slt-update/slt.xml</server>
|
<server type="extension" name="SLT Update Site of Christian Wolf" priority="1">http://slt.wolf-stuttgart.net/update/template/slt-update.xml</server>
|
||||||
</updateservers>-->
|
</updateservers>
|
||||||
</extension>
|
</extension>
|
||||||
|
Loading…
Reference in New Issue
Block a user