File: rebuild

package info (click to toggle)
dosemu 0.66.7-13
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,672 kB
  • ctags: 7,566
  • sloc: ansic: 60,209; sh: 3,965; asm: 2,219; yacc: 1,980; makefile: 831; perl: 598; lex: 506; awk: 398
file content (24 lines) | stat: -rwxr-xr-x 431 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
#!/bin/sh
#
#  rebuild - properly clean source tree, configure and recompile dosemu
#
TGT=/usr/bin
#
if [ $1 -a $1 == "all" -o ! -f Makefile ]; then
  if [ -f Makefile ]; then
    make pristine
    rm -f gen.log
  fi

  ./default-configure 2>&1 | tee gen.log
fi
make 'WAIT=' 2>&1 | tee -a gen.log

if [ "$UID" = "0" ]; then
  #
  # special installs
  #
  install -s -m 4755 bin/dos ${TGT}/dos
  cp -f bin/dosdebug /usr/bin
fi
sync