Commit 036a198d authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

add verbose messages

parent 6859a1b9
......@@ -5,6 +5,11 @@ PAGEURL="https://r3.pages.uni.lu/outreach/presentations"
rootDir=$(pwd)
echo $rootDir
# clean previous builds
rm -rf $rootDir/public
mkdir $rootDir/public
# loop through all the presentations
nBlades=0
for d in $(find . -maxdepth 1 -type d)
do
......@@ -17,11 +22,10 @@ do
let "nBlades+=1"
#blades[$nBlades]="$tutorial"
BLADE=${d1:2}
echo " > -----------------------------------------------------"
echo "Building ... ${d1}"
# create the required folders in public
rm -rf $rootDir/public
mkdir $rootDir/public
mkdir $rootDir/public/$BLADE
mkdir $rootDir/public/$BLADE/unstable
mkdir $rootDir/public/$BLADE/latest
......@@ -38,6 +42,7 @@ do
git submodule update --init
grunt dist
mv public/* $rootDir/public/$BLADE/unstable/.
echo " > unstable built for file set ${BLADE}"
# build the master version into stable
git fetch --tags
......@@ -46,6 +51,7 @@ do
git submodule update --init
grunt dist
mv public/* $rootDir/public/$BLADE/stable/.
echo " > stable built for file set ${BLADE}"
# build the develop version into latest
git checkout -f develop
......@@ -54,6 +60,7 @@ do
git submodule update --init
grunt dist
mv public/* $rootDir/public/$BLADE/latest/.
echo " > latest built for file set ${BLADE}"
# auto redirect file to the stable version
echo '<html>\n
......@@ -63,6 +70,9 @@ do
<body>\n
</bod>\n
</html>\n' > $rootDir/public/$BLADE/index.html
echo "autoredirect file set"
echo " > -----------------------------------------------------"
fi
done
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment