File: libsupport

package info (click to toggle)
icmake 13.05.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: cpp: 11,595; fortran: 883; makefile: 853; sh: 546; pascal: 342
file content (30 lines) | stat: -rwxr-xr-x 969 bytes parent folder | download
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
#!/bin/bash

cd build2nd

if [ ! -e libsupport ] ; then
    echo 'call this script from ~/src/icmake to construct ../tmp/libicmake.a'
    exit 1
fi

mkdir -p ../tmp/support

cp -r ../xerr ../tmp/support            # icmake/tmp/support: constrction dir

cp ../support/support.tgz ../tmp/support    # cp support.tgz, icmconf,
cp icmconf.support ../tmp/support/icmconf   #    CLASSES and INSTALL.im
cp CLASSES.support ../tmp/support/CLASSES
cp ../tmp/INSTALL.im ../tmp/support/

cd ../tmp/support                       # at icmake/tmp/support

tar xzf ../../support/support.tgz       # extract the support.tgz in support/

icmbuild                                # construct the library in ./tmp

mv tmp/libtmp.a ../libicmake.a          # mv the lib. to icmake/tmp

mkdir -p ../build                       # tmp/build receives the .h/.f files
(tar cf - */*.h */*.f) | (cd ../build; tar xf -)

rm -r ../support                        # rm the now SF icmake/tmp/support dir