File: libs.sh

package info (click to toggle)
gretl 2016d-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 48,620 kB
  • ctags: 22,779
  • sloc: ansic: 345,830; sh: 4,648; makefile: 2,712; xml: 570; perl: 364
file content (31 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (4)
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

TOPDIR="/Users/allin/dist"
PKGDIR="$TOPDIR/Gretl.app/Contents/Resources"

cd $PKGDIR

otool -L ./bin/gretl_x11 | awk '{ print $1 }' | grep /sw/lib > liblist
otool -L ./bin/gretlcli | awk '{ print $1 }' | grep /sw/lib >> liblist
otool -L ./bin/gnuplot | awk '{ print $1 }' | grep /sw/lib >> liblist
 
for f in `cat liblist | uniq` ; do
  cp $f ./lib
done

rm liblist

exit 0

# The following is only a vague approximation to what needs
# to be done: these actions will grab a lot of files that are
# not really needed; and various configuration files need to be
# edited.

cd /sw && tar cvfz ~/gtklib.tgz lib/gtk-2.0 lib/pango && \
cd $PKGDIR && tar xvfz ~/gtklib.tgz && \
rm ~/gtklib.tgz

cd /sw && tar cvfz ~/gtketc.tgz etc/gtk-2.0 etc/pango && \
cd $PKGDIR && tar xvfz ~/gtketc.tgz && \
rm ~/gtketc.tgz