Skip to content
Snippets Groups Projects
Verified Commit 20543f3c authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

link to img folder

parent 81584501
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,11 @@ do ...@@ -31,6 +31,11 @@ do
mkdir $rootDir/public/$BLADE/latest mkdir $rootDir/public/$BLADE/latest
mkdir $rootDir/public/$BLADE/stable mkdir $rootDir/public/$BLADE/stable
# create img folders
mkdir $rootDir/public/img/unstable
mkdir $rootDir/public/img/latest
mkdir $rootDir/public/img/stable
# change to the blade directory to be built # change to the blade directory to be built
cd $BLADE cd $BLADE
...@@ -51,6 +56,12 @@ do ...@@ -51,6 +56,12 @@ do
grunt dist grunt dist
mv public/* $rootDir/public/$BLADE/unstable/. mv public/* $rootDir/public/$BLADE/unstable/.
# link to the img directory
mv $rootDir/public/$BLADE/unstable/slides/img/* $rootDir/public/img/unstable/.
rm -rf $rootDir/public/$BLADE/unstable/slides/img
ln -s $rootDir/public/img/unstable $rootDir/public/$BLADE/unstable/slides/img
echo " > unstable built for file set ${BLADE}" echo " > unstable built for file set ${BLADE}"
# build the master version into stable # build the master version into stable
...@@ -61,6 +72,12 @@ do ...@@ -61,6 +72,12 @@ do
git submodule update --init git submodule update --init
grunt dist grunt dist
mv public/* $rootDir/public/$BLADE/stable/. mv public/* $rootDir/public/$BLADE/stable/.
# link to the img directory
mv $rootDir/public/$BLADE/stable/slides/img/* $rootDir/public/img/stable/.
rm -rf $rootDir/public/$BLADE/stable/slides/img
ln -s $rootDir/public/img/stable $rootDir/public/$BLADE/stable/slides/img
echo " > stable built for file set ${BLADE}" echo " > stable built for file set ${BLADE}"
# build the develop version into latest # build the develop version into latest
...@@ -71,6 +88,12 @@ do ...@@ -71,6 +88,12 @@ do
git submodule update --init git submodule update --init
grunt dist grunt dist
mv public/* $rootDir/public/$BLADE/latest/. mv public/* $rootDir/public/$BLADE/latest/.
# link to the img directory
mv $rootDir/public/$BLADE/latest/slides/img/* $rootDir/public/img/latest/.
rm -rf $rootDir/public/$BLADE/latest/slides/img
ln -s $rootDir/public/img/latest $rootDir/public/$BLADE/latest/slides/img
echo " > latest built for file set ${BLADE}" echo " > latest built for file set ${BLADE}"
# auto redirect file to the stable version # auto redirect file to the stable version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment