Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Improved procedure that creates distribution bin
Browse files Browse the repository at this point in the history
  • Loading branch information
datacharmer committed Jan 17, 2016
1 parent b722651 commit 9eeb169
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mkdist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ TOOLS="$TOOLS make_multiple_sandbox make_replication_sandbox make_sandbox make_s
TOOLS="$TOOLS make_sandbox_from_source msandbox msb sbtool test_sandbox"
LIBS="lib/MySQL/Sandbox.pm lib/MySQL/Sandbox/Scripts.pm lib/MySQL/Sandbox/Recipes.pm"

CHANGE_COPYRIGHT_YEAR='BEGIN{$y=shift;};s/(2006-)\d+ (Giuseppe Maxia)/$1$y $2/'
CHANGE_VERSION='BEGIN{$V=shift;};s/^(our \$VERSION=)([^;]+)/$1"$V"/'

CHANGE_COPYRIGHT_YEAR='BEGIN{$y=shift;};s/(2006-)\d+(\s+)(Giuseppe\s+Maxia)/$1$y$2$3/'
CHANGE_VERSION='BEGIN{$V=shift;};s/^(our\s+$VERSION=)([^;]+)/${1}q{$V}/'
#set -x
for TOOL in $TOOLS
do
perl -i.bak -pe $CHANGE_COPYRIGHT_YEAR $YEAR bin/$TOOL
Expand All @@ -36,7 +36,7 @@ do
perl -i.bak -pe $CHANGE_VERSION $VERSION $LIB
perl -i.1bak -pe $CHANGE_COPYRIGHT_YEAR $YEAR $LIB
done

#set +x
pod2markdown lib/MySQL/Sandbox.pm > README.md

perl Makefile.PL PREFIX=$HOME/usr/local
Expand Down Expand Up @@ -64,9 +64,9 @@ fi

make clean

find . -name "*~" -exec rm {} \;
find . -name "*.bak" -exec rm {} \;
find . -name "*.1bak" -exec rm {} \;
find . -name "*~" -exec rm -f {} \;
find . -name "*.bak" -exec rm -f {} \;
find . -name "*.1bak" -exec rm -f {} \;
rm -rf t/test_sb/
rm -f pod*.tmp
rm -f Makefile.old
Expand Down

0 comments on commit 9eeb169

Please sign in to comment.