make_dist.sh: Fix the inclusion of release-readme.txt and allow game-dirs to pack their own info texts.

This commit is contained in:
Marco Cawthorne 2023-02-08 16:17:22 -08:00
parent 855daac7e7
commit fe84c317e2
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 7 additions and 2 deletions

View File

@ -19,7 +19,7 @@ Make sure you're running the latest version of FTEQW.
If your entire engine/binary crashes to desktop or whatever, it's an FTE bug.
Contact #fte at irc.quakenet.org
If you crash to console, contact #freecs at irc.libera.chat
If you crash to console, contact #nuclide at irc.libera.chat
Notes
=======================================

View File

@ -48,6 +48,11 @@ find ./$GAME_DIR -name *.pk3dir | xargs -I @ sh -c 'echo `basename "@"`' | while
mv "./$GAME_DIR/$PK3DIR/$PK3NAME.pk3" "./$BUILD_DIR/$GAME_DIR/$PK3NAME.pk3"
done;
# copy plain text files included within the game-dir
find ./$GAME_DIR -name '*.txt' | xargs -I @ sh -c 'echo `basename "@"`' | while read TEXTNAME; do
cp "./$GAME_DIR/$TEXTNAME" "./$BUILD_DIR/$GAME_DIR/$TEXTNAME"
done;
# copy over the shell scripts inside the game-dir
find ./$GAME_DIR -name 'install_*.sh' | xargs -I @ sh -c 'echo `basename "@"`' | while read SCRIPTNAME; do
cp "./$GAME_DIR/$SCRIPTNAME" "./$BUILD_DIR/$GAME_DIR/$SCRIPTNAME"
@ -89,7 +94,7 @@ else
fi
sed -i "s|base|$GAME_DIR|g" ./$BUILD_DIR/default.fmf
cp ./doc/release-readme ./$BUILD_DIR/README.txt
cp ./Documentation/release-readme.txt ./$BUILD_DIR/README.txt
fi
tree ./$BUILD_DIR