all repos — lang_italian @ 52d5ac4fbfef6ca930cb367086d0e3eb865fa60d

add useful script
Marco Andronaco andronacomarco@gmail.com
Wed, 17 Mar 2021 16:14:32 +0100
commit

52d5ac4fbfef6ca930cb367086d0e3eb865fa60d

parent

92ea9efa1bfdecd535f96e9c1c116030a514a2c3

2 files changed, 35 insertions(+), 0 deletions(-)

jump to
A .gitignore

@@ -0,0 +1,2 @@

+tsconvert +converted
A cAll.sh

@@ -0,0 +1,33 @@

+#!/bin/bash + +#destination_folder='converted' +destination_folder='../nxengine-evo/build/CaveStory/data/lang/italian' + +# create directory if not present +mkdir -p "$destination_folder/Stage" + +# iterate over every .txt file in this folder +for txtfile in ./*.txt; do + tscfile="$(basename $txtfile .txt).tsc" + + echo "Converting $txtfile into $tscfile" + ./tsconvert "$txtfile" "$destination_folder/$tscfile" +done + +# do the same for every .txt file in the Stage folder +for txtfile in Stage/*.txt; do + tscfile="Stage/$(basename $txtfile .txt).tsc" + + echo "Converting $txtfile into $tscfile" + ./tsconvert "$txtfile" "$destination_folder/$tscfile" +done + +# copy all .pbm files +echo "Copying image files and metadata" +cp *.pbm "$destination_folder/" +cp metadata "$destination_folder/" + +#copy other files +echo "Copying .md files" +cp system.json "$destination_folder/" +cp *.md "$destination_folder/"