all repos — lang_italian @ 52d5ac4fbfef6ca930cb367086d0e3eb865fa60d

cAll.sh (view raw)

 1#!/bin/bash
 2
 3#destination_folder='converted'
 4destination_folder='../nxengine-evo/build/CaveStory/data/lang/italian'
 5
 6# create directory if not present
 7mkdir -p "$destination_folder/Stage"
 8
 9# iterate over every .txt file in this folder
10for txtfile in ./*.txt; do
11    tscfile="$(basename $txtfile .txt).tsc"
12
13    echo "Converting $txtfile into $tscfile"
14    ./tsconvert "$txtfile" "$destination_folder/$tscfile"
15done
16
17# do the same for every .txt file in the Stage folder
18for txtfile in Stage/*.txt; do
19    tscfile="Stage/$(basename $txtfile .txt).tsc"
20
21    echo "Converting $txtfile into $tscfile"
22    ./tsconvert "$txtfile" "$destination_folder/$tscfile"
23done
24
25# copy all .pbm files
26echo "Copying image files and metadata"
27cp *.pbm "$destination_folder/"
28cp metadata "$destination_folder/"
29
30#copy other files
31echo "Copying .md files"
32cp system.json "$destination_folder/"
33cp *.md "$destination_folder/"