Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
one more step to multiple backends.
  • Loading branch information
coke committed May 19, 2014
1 parent 9fde22f commit f167345
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
star
star-*
repos
94 changes: 48 additions & 46 deletions bin/star.sh
Expand Up @@ -10,49 +10,51 @@ REPO_DIR=`pwd`/repos
# start fresh
rm -rf star

git clone $REPO_DIR/star.git
cd star

# get the latest everything

git clone $REPO_DIR/parrot.git
(cd parrot && git describe --tags > VERSION_GIT)
git clone $REPO_DIR/nqp.git
(cd nqp && git ls-files > MANIFEST; git describe > VERSION)
git clone $REPO_DIR/rakudo.git
(cd rakudo && git ls-files > MANIFEST; git describe > VERSION)

# setup the modules to pull the latest, not just the declared version)
git submodule init
git submodule update
(cd modules; for file in * ; do (cd $file && git fetch origin; git reset --hard origin/master); done)

make -f tools/star/Makefile manifest

# get submodules # ??? is this doing anything?
git submodule foreach git pull origin master 2>&1 | tee submodule.log

# log the versions used on everything
echo "parrot" > $LOG_DIR/parrot-version.log
cat parrot/VERSION_GIT >> $LOG_DIR/parrot-version.log
echo "Rakudo" > $LOG_DIR/parrot-version.log
cat rakudo/VERSION >> $LOG_DIR/parrot-version.log
echo "NQP" >> $LOG_DIR/parrot-version.log
cat nqp/VERSION >> $LOG_DIR/parrot-version.log
echo "modules" >> $LOG_DIR/parrot-version.log
(cd modules; for file in * ; do echo "--------"; echo $file; (cd $file; git log HEAD^..HEAD); done) >> $LOG_DIR/parrot-version.log

# make a release candidate
make -f tools/star/Makefile release VERSION=daily 2>&1 | tee makefile.log

# explode the release candidate
tar xvf rakudo-star-daily.tar.gz

# build it.
cd rakudo-star-daily
perl Configure.pl --backend=parrot --gen-nqp --gen-parrot 2>&1 | tee $LOG_DIR/parrot-configure.log
make install 2>&1 | tee $LOG_DIR/parrot-build.log

# run tests
make rakudo-test 2>&1 | tee $LOG_DIR/parrot-test-rakudo.log
make modules-test 2>&1 | tee $LOG_DIR/parrot-test-modules.log
for impl in "parrot"; do
git clone $REPO_DIR/star.git star-$impl
cd star-$impl

# get the latest everything

git clone $REPO_DIR/parrot.git
(cd parrot && git describe --tags > VERSION_GIT)
git clone $REPO_DIR/nqp.git
(cd nqp && git ls-files > MANIFEST; git describe > VERSION)
git clone $REPO_DIR/rakudo.git
(cd rakudo && git ls-files > MANIFEST; git describe > VERSION)

# setup the modules to pull the latest, not just the declared version)
git submodule init
git submodule update
(cd modules; for file in * ; do (cd $file && git fetch origin; git reset --hard origin/master); done)

make -f tools/star/Makefile manifest

# get submodules # ??? is this doing anything?
git submodule foreach git pull origin master 2>&1 | tee submodule.log

# log the versions used on everything
echo "parrot" > $LOG_DIR/$impl-version.log
cat parrot/VERSION_GIT >> $LOG_DIR/$impl-version.log
echo "Rakudo" > $LOG_DIR/$impl-version.log
cat rakudo/VERSION >> $LOG_DIR/$impl-version.log
echo "NQP" >> $LOG_DIR/$impl-version.log
cat nqp/VERSION >> $LOG_DIR/$impl-version.log
echo "modules" >> $LOG_DIR/$impl-version.log
(cd modules; for file in * ; do echo "--------"; echo $file; (cd $file; git log HEAD^..HEAD); done) >> $LOG_DIR/$impl-version.log

# make a release candidate
make -f tools/star/Makefile release VERSION=daily 2>&1 | tee makefile.log

# explode the release candidate
tar xvf rakudo-star-daily.tar.gz

# build it.
cd rakudo-star-daily
perl Configure.pl --backend=parrot --gen-nqp --gen-parrot 2>&1 | tee $LOG_DIR/$impl-configure.log
make install 2>&1 | tee $LOG_DIR/$impl-build.log

# run tests
make rakudo-test 2>&1 | tee $LOG_DIR/$impl-test-rakudo.log
make modules-test 2>&1 | tee $LOG_DIR/$impl-test-modules.log
done

0 comments on commit f167345

Please sign in to comment.