Skip to content
Snippets Groups Projects
Commit a53861e0 authored by Emuis's avatar Emuis
Browse files

fix adding commit

parent 11ea4d97
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Find and insert current commit
COMMIT=$(git rev-list HEAD --count)
sed -i "s/COMMIT/$COMMIT/" ./src/init/storyInit.tw
COMMIT=$(git rev-parse --short HEAD)
sed -Ei "s/build .releaseID/\0 commit $COMMIT/" src/gui/mainMenu/AlphaDisclaimer.tw
# Run sanity check.
......@@ -30,5 +30,5 @@ fi
#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
# Revert AlphaDisclaimer for next compilation
git checkout -- src/gui/mainMenu/AlphaDisclaimer.tw
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