Skip to content

Commit a4263ff

Browse files
committed
Use one shell script to generate both the Unix and Windows packages;
Increase version to 1.1.
1 parent 34d2cf9 commit a4263ff

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2017-04-17 Wu Yongwei <[email protected]>
2+
3+
* misc/release.sh: Accommodate recent changes and generate both the
4+
Unix and Windows packages.
5+
(VER): Increase to 1.1.
6+
* misc/release.bat: Remove.
7+
18
2017-04-10 Wu Yongwei <[email protected]>
29

310
* misc/doxit.sh: Eliminate an old workaround on new Doxygen

misc/release.bat

Lines changed: 0 additions & 20 deletions
This file was deleted.

misc/release.sh

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,31 @@
33

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

6-
VER="1.0"
6+
VER="1.1"
77
RELEASE="nvwa-$VER"
8+
RELEASE_DIR="$PWD/$RELEASE"
9+
rm -f $RELEASE.tar.gz $RELEASE.zip
810
rm -rf $RELEASE
911
mkdir $RELEASE
10-
cd $RELEASE
1112

12-
export CVSROOT=:pserver:[email protected]:/cvsroot/nvwa
13-
cvs -z9 co doc nvwa
13+
cd ..
14+
cp -p ChangeLog LICENCE README $RELEASE_DIR
1415

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

18-
cd ..
19+
mkdir "$RELEASE_DIR/test"
20+
( cd "test"; cp -p Makefile *.cpp "$RELEASE_DIR/test" )
21+
22+
mkdir "$RELEASE_DIR/doc"
23+
cp -pr doc/html "$RELEASE_DIR/doc/html"
24+
( cd "$RELEASE_DIR/doc/html"; rm -f *.map *.md5 )
25+
26+
cd misc
1927
tar cvfz $RELEASE.tar.gz $RELEASE/
28+
29+
FILES=`find $RELEASE -type f`
30+
for FILE in $FILES; do
31+
unix2dos -k -s $FILE
32+
done
33+
zip -r $RELEASE.zip $RELEASE/

0 commit comments

Comments
 (0)