Skip to content

Commit

Permalink
Changing update-site URL to point to project's own Wiki repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Gusev committed Mar 4, 2022
1 parent 89a61f6 commit 559aafa
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
bin
.settings
.project
.DS_Store
artifacts.jar
content.jar
Expand Down
2 changes: 1 addition & 1 deletion com.anjlab.eclipse.e4.tapestry5.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
</license>

<url>
<update label="Eclipse Integration for Tapestry5" url="https://dl.bintray.com/anjlab/eclipse-tapestry5-plugin"/>
<update label="Eclipse Integration for Tapestry5" url="https://raw.githubusercontent.com/wiki/anjlab/eclipse-tapestry5-plugin/update-site"/>
</url>

<requires>
Expand Down
2 changes: 1 addition & 1 deletion com.anjlab.eclipse.tapestry5.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ for TML files.
</license>

<url>
<update label="Eclipse Integration for Tapestry5" url="https://dl.bintray.com/anjlab/eclipse-tapestry5-plugin"/>
<update label="Eclipse Integration for Tapestry5" url="https://raw.githubusercontent.com/wiki/anjlab/eclipse-tapestry5-plugin/update-site"/>
</url>

<plugin
Expand Down
2 changes: 1 addition & 1 deletion com.anjlab.eclipse.tapestry5.webtools.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
</license>

<url>
<update label="Eclipse Integration for Tapestry5" url="https://dl.bintray.com/anjlab/eclipse-tapestry5-plugin"/>
<update label="Eclipse Integration for Tapestry5" url="https://raw.githubusercontent.com/wiki/anjlab/eclipse-tapestry5-plugin/update-site"/>
</url>

<requires>
Expand Down
23 changes: 16 additions & 7 deletions update-site/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@ SCRIPT_PATH=$( cd $(dirname $0) ; pwd -P )

cd ${SCRIPT_PATH}

ARCHIVE_NAME=${REPO_NAME}-${PACKAGE_NAME}-${VERSION_NAME}.zip
rm -rf ${VERSION_NAME}

rm ${ARCHIVE_NAME}
mkdir ${VERSION_NAME}

zip -r ${ARCHIVE_NAME} \
artifacts.jar \
content.jar \
features \
plugins
cp artifacts.jar ${VERSION_NAME}
cp content.jar ${VERSION_NAME}
mv features ${VERSION_NAME}
mv plugins ${VERSION_NAME}

unzip artifacts.jar

sed -i'.bak' -e "s/\/plugins\/\\$/\/${VERSION_NAME}\/plugins\/$/g" artifacts.xml
sed -i'.bak' -e "s/\/features\/\\$/\/${VERSION_NAME}\/features\/$/g" artifacts.xml
sed -i'.bak' -e "s/\/binary\/\\$/\/${VERSION_NAME}\/binary\/$/g" artifacts.xml

zip artifacts.jar artifacts.xml

rm artifacts.xml artifacts.xml.bak

0 comments on commit 559aafa

Please sign in to comment.