File: rebuild

package info (click to toggle)
dosemu 0.98.8-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,944 kB
  • ctags: 9,487
  • sloc: ansic: 70,624; sh: 4,170; asm: 3,601; yacc: 3,020; lex: 1,342; perl: 962; makefile: 735; tcl: 602; awk: 410
file content (24 lines) | stat: -rwxr-xr-x 436 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
#!/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.conf ]; 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