X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=make_release.sh;h=68bb0705c4e2673747ea6738342f1edaaf367530;hb=cb69923e40a94f9b611874437f00d7d31abf3dd7;hp=c1e1d4730f7663f944d94692596ca3fed1c63f8a;hpb=a6621804382a7d0c38ba300479793b57641f78a9;p=cparser diff --git a/make_release.sh b/make_release.sh index c1e1d47..68bb070 100755 --- a/make_release.sh +++ b/make_release.sh @@ -1,13 +1,15 @@ -#!/bin/bash +#!/bin/sh #set -x WORKDIR="release" -VERSION="0.9.5" +VERSION="0.9.13" RELEASEDIR="cparser-$VERSION" FULLRELEASEDIR="$WORKDIR/$RELEASEDIR" RELEASEFILE="cparser-$VERSION.tar.bz2" -SOURCEDIRS="adt driver builtins ." -ADDFILES="README TODO NEWS AUTHOR COPYING Makefile" +SOURCEDIRS="adt builtins driver win32 wrappergen ." +ADDFILES="README.md NEWS.md AUTHOR COPYING cparser.1" + +rm -rf "$FULLRELEASEDIR" echo "Preparing $FULLRELEASEDIR" mkdir -p "$WORKDIR" @@ -19,10 +21,13 @@ for dir in $SOURCEDIRS; do cp -p "$dir/"*.def "$FULLRELEASEDIR/$dir" cp -p "$dir/"*.inc "$FULLRELEASEDIR/$dir" cp -p "$dir/"*.[ch] "$FULLRELEASEDIR/$dir" + cp -p "$dir/"*.[ch].* "$FULLRELEASEDIR/$dir" done cp $ADDFILES "$FULLRELEASEDIR" +rm -f "$FULLRELEASEDIR/revision.h" +rm -f "$FULLRELEASEDIR/config.h" +echo "REVISION = \"$VERSION\"" > "$FULLRELEASEDIR/Makefile" +cat Makefile >> "$FULLRELEASEDIR/Makefile" echo "creating $RELEASEFILE" -pushd "$WORKDIR" -tar -cjf "$RELEASEFILE" "$RELEASEDIR" -popd +tar cjf "$RELEASEFILE" -C "$WORKDIR" "$RELEASEDIR"