8
edits
m (→Instructions: Clarified the very last sentence) |
m (Moved the Bash Script above the long xml file listing to make it easier to find.) |
||
Line 96: | Line 96: | ||
AppTr_Waypoint [ID] (many of these per App_Transition) | AppTr_Waypoint [ID] (many of these per App_Transition) | ||
</pre> | </pre> | ||
== Bash script == | |||
ZirconiumX wrote a bash script for putting the XML files into the FG required locations.<ref>{{cite web | |||
|url = https://forum.flightgear.org/viewtopic.php?p=280561#p280561 | |||
|title = <nowiki> Re: Non-Navigraph SID/STAR xml files </nowiki> | |||
|author = <nowiki> ZirconiumX </nowiki> | |||
|date = Mar 26th, 2016 | |||
|added = Mar 26th, 2016 | |||
|script_version = 0.40 | |||
}}</ref> | |||
<syntaxhighlight lang="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 | |||
</syntaxhighlight> | |||
== Sample procedures.xml File == | == Sample procedures.xml File == | ||
Line 8,690: | Line 8,716: | ||
</Airport> | </Airport> | ||
</ProceduresDB> | </ProceduresDB> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== References == | == References == | ||
{{Appendix}} | {{Appendix}} |
edits