Permalink
Browse files

Rework the night command to stay inside the main dir.

Instead of writing in /tmp, just use the current working directory. This will
make it much easier to see what is built and what the state of the system is,
etc.

I also simplified the situation a bit so that the "archived" builds weren't
available through the combo loader, only the current day is (via symlinking).
At some point I'd like to come back to this and make it so that we can have
custom endpoints for each days' set of builds.
  • Loading branch information...
rockstar committed Dec 10, 2011
1 parent 9dbe7bd commit 014111109342989495769480ee39118f0b6734b4
Showing with 10 additions and 4 deletions.
  1. +10 −4 nightly.sh
View
@@ -1,10 +1,13 @@
#!/bin/sh
CWD=`pwd`
-TEMPDIR=/tmp/yui3-nightly
+TEMPDIR=$CWD/tmp
+TARGET=$CWD/build
+
YUIGITBRANCH=git@github.com:yui/yui3.git
BUILDGITBRANCH=git@github.com:yui/builder.git
-TARGET=/tmp/yui3
+
+DATE=`date "+%Y%m%d"`
mkdir $TEMPDIR
@@ -13,8 +16,11 @@ git clone $YUIGITBRANCH
git clone $BUILDGITBRANCH
cd yui3/src
ant all
-cd ..
-cp -r build/ $TARGET/`date "+%Y%m%d"`/
+cd $CWD
+mkdir -p $TARGET/$DATE
+cp -r $TEMPDIR/yui3/build/* $TARGET/$DATE
+rm -rf $TARGET/www
+ln -s $TARGET/$DATE $TARGET/www
cd $CWD
rm -rf $TEMPDIR

0 comments on commit 0141111

Please sign in to comment.