# # KEHOME/bin/mkr2xstyle # Feb/25/2007 # convert groups of mKR property statements # to xml style property lists # example input # AuthorMerrill,_James isu Author; # AuthorMerrill,_James has label += " James Merrill"; # AuthorMerrill,_James has label += "James Merrill"; # # GameAsteroids_3D isu PersonalComputerGame; # GameAsteroids_3D has label += "Asteroids 3D"; # # CityStratfordCT isu UnitedStatesCity; # CityStratfordCT has label += "Stratford"; # CityStratfordCT has locatedIn += ConnecticutState; # example output # # AuthorMerrill,_James HAS # isu Author , # has label += " James Merrill" , # has label += "James Merrill" ; # # GameAsteroids_3D HAS # isu PersonalComputerGame , # has label += "Asteroids 3D" ; # # CityStratfordCT HAS # isu UnitedStatesCity , # has label += "Stratford" , # has locatedIn += ConnecticutState ; mkrfile="$1" xstyle="$2" sed 's/;$/ ;/' "$mkrfile" | awk -f "/home/ke/src/mkr2xstyle.awk" > "$xstyle" #