Indentation fix, cleanup.
[AROS.git] / tools / fd2inline / lib / splitasm.awk
blob38a52318134315b1ab185b977b41a3b73ed4529d
1 #! /bin/awk -f
3 # splitasm.awk
5 # Copyright (C) 1995, 96 Kamil Iskra <iskra@student.uci.agh.edu.pl>
6 # Distributed under terms of GNU General Public License.
8 # This file is part of fd2inline package.
10 # It is used to create linker libraries with stubs for Amiga shared libraries'
11 # functions.
13 /^.globl/ {
14 currfn=substr($2, 2) ".s"
15 print ".text\n\t.even" >currfn
18 currfn!="" {
19 print $0 >currfn
22 /^\trts$/ {
23 close(currfn)
24 currfn=""