cleanup release and build script

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-10-26 12:17:43 +02:00
parent c29b7f6814
commit 1064d8edd5
2 changed files with 8 additions and 13 deletions

5
build
View file

@ -122,11 +122,6 @@ case "$1" in
rm -rf ${WEBMAN} rm -rf ${WEBMAN}
mkdir -p ${WEBMAN}/man1 ${WEBMAN}/man7 mkdir -p ${WEBMAN}/man1 ${WEBMAN}/man7
# old stuff
# rm -rf ${WEBDIR}/${WEBBASE}/speeches && mkdir ${WEBDIR}/${WEBBASE}/speeches
# cp ${SPEECHESDIR}/*.pdf ${WEBDIR}/${WEBBASE}/speeches
# git describe > ${WEBDIR}/${WEBBASE}/man/VERSION
cp ${MAN1DSTDIR}/*.html ${MAN1DSTDIR}/*.css ${WEBMAN}/man1 cp ${MAN1DSTDIR}/*.html ${MAN1DSTDIR}/*.css ${WEBMAN}/man1
cp ${MAN7DSTDIR}/*.html ${MAN7DSTDIR}/*.css ${WEBMAN}/man7 cp ${MAN7DSTDIR}/*.html ${MAN7DSTDIR}/*.css ${WEBMAN}/man7

16
docs/dev/releasehelper Executable file → Normal file
View file

@ -30,10 +30,10 @@ read wait
version=$changelog_version version=$changelog_version
# get target branch # get target branch
branch=${version%\.*} target_branch=${version%\.*}
current_branch=$(git rev-parse --abbrev-ref HEAD)
echo "Selecting branch $branch for merging" echo "Selected branch $target_branch for merging $current_branch"
exit 0
# add tag # add tag
printf "Enter tag description for %s> " "$version" printf "Enter tag description for %s> " "$version"
@ -41,14 +41,14 @@ read tagmessage
git tag "$version" -m "$tagmessage" git tag "$version" -m "$tagmessage"
# Import into current version branch # Import into current version branch
printf "Press enter to git merge into branch \"$branch\" > " printf "Press enter to git merge into branch \"$target_branch\" > "
read prompt read prompt
git checkout $branch git checkout "$target_branch"
git merge master git merge "$current_branch"
git checkout master git checkout "$current_branch"
# Publish manpages and sourcecode # Publish manpages and sourcecode
printf "Press enter to publish doc/ and code/ > " printf "Press enter to publish doc/ code/ pypi for $version > "
read prompt read prompt
./build web ./build web
./build pub ./build pub