File: BuildExe

package info (click to toggle)
icon 9.5.25a-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,624 kB
  • sloc: ansic: 28,692; cpp: 5,650; yacc: 926; makefile: 882; lisp: 873; sh: 319; sed: 13; php: 1
file content (35 lines) | stat: -rwxr-xr-x 752 bytes parent folder | download | duplicates (2)
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
32
33
34
35
#!/bin/sh
#
#  BuildExe -- build executables in ./iexe
#
#  Includes programs from pack directories.
#  Assumes that ../bin and ../lib have been built.

set -x

export LC_ALL=POSIX

#  Set minimal path needed.  Not all systems have all these directories
TOP=`cd ..; pwd`
export PATH=$TOP/bin:/usr/xpg4/bin:/usr/ccs/bin:/bin:/usr/bin
export IPATH=$TOP/lib
export LPATH=$TOP/lib

#  Use default Icon options for packages that include an Icon execution
unset BLKSIZE STRSIZE MSTKSIZE COEXPSIZE TRACE NOERRBUF FPATH


#  Build progs and gprogs
test -d iexe || mkdir iexe
cd iexe
for f in ../progs/*icn ../gprogs/*icn; do
    icont -us $f
done
cd ..


#  Build packages
for d in *packs/[a-z]*; do
    echo $d
    (cd $d; make Clean; ${MAKE-make} Iexe)
done