File: fix4aix

package info (click to toggle)
aplus-fsf 4.22.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 22,432 kB
  • ctags: 32,381
  • sloc: cpp: 176,659; ansic: 27,018; sh: 12,139; makefile: 2,601; lisp: 2,151
file content (31 lines) | stat: -rwxr-xr-x 1,050 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh

for i in cxs a cxb cxc cxsys dap esf MSTypes MSIPC MSGUI IPC AplusGUI
do
  cd src/$i
  sed -e 's/^\.\(.\)\.lo:/.\1.ng:/' \
    -e 's/\.lo/.o/g' \
    -e 's/$(LIBTOOL) --mode=link //' \
    -e 's/^LDFLAGS =/& -shared/' \
    -e "s/^	\$(CXXLINK) -rpath .*/	ar crv lib${i}.a \$(lib${i}_la_OBJECTS)/" \
    -e "s/^	\$(LINK) -rpath .*/	ar crv lib${i}.a \$(lib${i}_la_OBJECTS)/" \
    -e 's/lib\(.*\)\.la/lib\1.a/' Makefile > Makefile.aix
  mv Makefile.aix Makefile
  cd ../..
done

  sed -e 's/libcxs\.la/libcxs.a/g' \
      -e 's/liba\.la/liba.a/g' \
      -e 's/libcxb\.la/libcxb.a/g' \
      -e 's/libcxc\.la/libcxc.a/g' \
      -e 's/libcxsys\.la/libcxsys.a/g' \
      -e 's/libdap\.la/libdap.a/g' \
      -e 's/libesf\.la/libesf.a/g' \
      -e 's/libAplusGUI\.la/libAplusGUI.a/g' \
      -e 's/libIPC\.la/libIPC.a/g' \
      -e 's/libMSGUI\.la/libMSGUI.a/g' \
      -e 's/libMSIPC\.la/libMSIPC.a/g' \
      -e 's/libMSTypes\.la/libMSTypes.a/g' \
     src/main/Makefile > src/main/Makefile.aix
mv src/main/Makefile.aix src/main/Makefile