Newer
Older
#!/bin/bash
# Find and insert current commit
COMMIT=$(git rev-list HEAD --count)
sed -i "s/COMMIT/$COMMIT/" ./src/init/storyInit.tw
HASH=`git log -n1 |grep commit | sed 's/commit //'`
./devTools/tweeGo/tweego_nix64 -o bin/FC_pregmod.html src/
./devTools/tweeGo/tweego_nix86 -o bin/FC_pregmod.html src/
#Make the output prettier, replacing \t with a tab and \n with a newline
sed -i -e '/^.*<div id="store-area".*$/s/\\t/\t/g' -e '/^.*<div id="store-area".*$/s/\\n/\n/g' bin/FC_pregmod.html
# Revert ./src/init/storyInit.tw for next compilation
git checkout -- ./src/init/storyInit.tw