Skip to content

Commit

Permalink
Use one shell script to generate both the Unix and Windows packages;
Browse files Browse the repository at this point in the history
Increase version to 1.1.
  • Loading branch information
adah1972 committed Apr 17, 2017
1 parent 34d2cf9 commit a4263ff
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 27 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2017-04-17 Wu Yongwei <wuyongwei@gmail.com>

* misc/release.sh: Accommodate recent changes and generate both the
Unix and Windows packages.
(VER): Increase to 1.1.
* misc/release.bat: Remove.

2017-04-10 Wu Yongwei <wuyongwei@gmail.com>

* misc/doxit.sh: Eliminate an old workaround on new Doxygen
Expand Down
20 changes: 0 additions & 20 deletions misc/release.bat

This file was deleted.

28 changes: 21 additions & 7 deletions misc/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,31 @@

# Shell script to create "nvwa-x.y.tar.gz"

VER="1.0"
VER="1.1"
RELEASE="nvwa-$VER"
RELEASE_DIR="$PWD/$RELEASE"
rm -f $RELEASE.tar.gz $RELEASE.zip
rm -rf $RELEASE
mkdir $RELEASE
cd $RELEASE

export CVSROOT=:pserver:anonymous@nvwa.cvs.sourceforge.net:/cvsroot/nvwa
cvs -z9 co doc nvwa
cd ..
cp -p ChangeLog LICENCE README $RELEASE_DIR

cp -pr ../../doc/latex/refman.pdf ../../doc/html doc/
( cd doc/html; rm -f *.dot *.map *.md5 .* )
mkdir "$RELEASE_DIR/nvwa"
( cd "nvwa"; cp -p *.cpp *.h "$RELEASE_DIR/nvwa" )

cd ..
mkdir "$RELEASE_DIR/test"
( cd "test"; cp -p Makefile *.cpp "$RELEASE_DIR/test" )

mkdir "$RELEASE_DIR/doc"
cp -pr doc/html "$RELEASE_DIR/doc/html"
( cd "$RELEASE_DIR/doc/html"; rm -f *.map *.md5 )

cd misc
tar cvfz $RELEASE.tar.gz $RELEASE/

FILES=`find $RELEASE -type f`
for FILE in $FILES; do
unix2dos -k -s $FILE
done
zip -r $RELEASE.zip $RELEASE/

0 comments on commit a4263ff

Please sign in to comment.