I wrote a bash script for putting the XML files into the FG required locations.
- Code: Select all
#!/bin/bash
for file in $(ls *.xml)
do
# First, rename all the files to the correct convention
mv "$file" "${file%.xml}.procedures.xml"
# Then move it to the correct place
icao=${file%.xml}
icao1=$(echo $icao | cut -c 1)
icao2=$(echo $icao | cut -c 2)
icao3=$(echo $icao | cut -c 3)
mkdir -p $icao1/$icao2/$icao3
mv "${icao}.procedures.xml" "$icao1/$icao2/$icao3/${icao}.procedures.xml"
done
I'm still somewhat uncomfortable about whether this is still okay, as just because it is freeware does
not make it GPLv2 - you'd need the original copyright holder's permission.