Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
rebecca0201 committed Aug 15, 2023
1 parent bb8e7b5 commit 9911d63
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Binary file modified dist/lib/zest-examples.war
Binary file not shown.
Binary file modified dist/lib/zest.jar
Binary file not shown.
1 change: 1 addition & 0 deletions doc/release-note
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Features:

Bugs:
Fix release script

Upgrade Notes:
Update Java compiler source/target to 8
Expand Down
18 changes: 11 additions & 7 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ echo "Release $binnm..."
rm -rf /tmp/zest
rm -rf /tmp/maven

#build zest.jar
./build clean zest
./build zest

#build *-all.war
rm -rf dist/lib/zest-examples*.war
cp -f zest-examples/war.libs.all zest-examples/war.libs
Expand Down Expand Up @@ -106,7 +110,7 @@ if [ "$target" == "official" ] || [ "$target" == "daily" ] ; then

cd /tmp/zest/$srcnm
rm -rf zest/debug
find -name .svn | xargs rm -rf
find . -name .svn | xargs rm -rf

cd /tmp/zest

Expand All @@ -123,7 +127,7 @@ if [ "$target" == "official" ] || [ "$target" == "daily" ] ; then
echo Output '*-sources.jar'
cd src

find -name 'package.html' | xargs rm -rf
find . -name 'package.html' | xargs rm -rf
jar cfM zest-sources.jar -C zest .

chmod 644 *.jar
Expand All @@ -148,7 +152,7 @@ if [ "$target" == "official" ] || [ "$target" == "daily" ] ; then
cd $maindir

#mv -f /tmp/zest/*-sources.jar /tmp/zest/$binnm/dist/src
cp dist/lib/zcommon.jar dist/lib/zcommons-el.jar dist/lib/zweb.jar /tmp/zest/$binnm/dist/lib/
cp dist/lib/ext/zcommon.jar dist/lib/ext/zcommons-el.jar dist/lib/ext/zweb.jar /tmp/zest/$binnm/dist/lib/
cp dist/lib/zest.jar /tmp/zest/$binnm/dist/lib/
chmod 644 /tmp/zest/$binnm/dist/lib/*.jar
#chmod 644 /tmp/zest/$binnm/dist/lib/*/*.jar
Expand All @@ -161,10 +165,10 @@ if [ "$target" == "official" ] || [ "$target" == "daily" ] ; then
chmod 644 /tmp/zest/$binnm/doc/release-note

cd /tmp/zest/$binnm/doc
find -name .svn | xargs rm -rf
find . -name .svn | xargs rm -rf

#cd /tmp/zest/$binnm/dist/WEB-INF
#find -name .svn | xargs rm -rf
#find . -name .svn | xargs rm -rf

cd /tmp/zest

Expand Down Expand Up @@ -251,13 +255,13 @@ if [ "$target" == "official" ] || [ "$target" == "daily" ] ; then
cp dist/lib/zest-examples.war /tmp/zest/$demonm/zest-examples-min.war

cd /tmp/zest/$demonm/doc
find -name .svn | xargs rm -rf
find . -name .svn | xargs rm -rf

cd $maindir
mv dist/lib/zest-examples-all.war /tmp/zest/$demonm/zest-examples.war

cd /tmp/zest
find -name .svn | xargs rm -rf
find . -name .svn | xargs rm -rf

echo Output ${demonm}.zip
zip -qr9 ${demonm}.zip $demonm
Expand Down

0 comments on commit 9911d63

Please sign in to comment.