summaryrefslogtreecommitdiff
path: root/lang/squeak/patches/patch-af
blob: 3dec2edd7c91c1d8936b86db006120fd56d5a928 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
$NetBSD: patch-af,v 1.1 2001/08/23 21:18:31 fredb Exp $

*** ../src/unix/inisqueak.in	21 May 2001 03:43:46 -0000	1.1.1.1
--- ../src/unix/inisqueak.in	21 May 2001 04:05:03 -0000
***************
*** 56,64 ****
  CHANGES=Squeak${VERSION}.changes
  SOURCES=SqueakV${MAJOR}.sources
  
- # Sun's /bin/sh does not understand "test -e", but [/usr]/bin/test does
- test="`which test`"
- 
  startup="yes"
  
  if test ! -w .; then
--- 56,61 ----
***************
*** 81,90 ****
  {
    file="${1}"
    dir="${2}"
!   if ${test} ! -e ${1}; then
!     if ${test} -e ${2}/${1}; then
        echo "+ ${3} ${2}/${1} ."
                ${3} ${2}/${1} .
      else
        missing "${2}/${1}"
      fi
--- 78,89 ----
  {
    file="${1}"
    dir="${2}"
!   if test ! -f ${1} ; then
!     if test -f ${2}/${1} ; then
        echo "+ ${3} ${2}/${1} ."
                ${3} ${2}/${1} .
+       echo "+ chmod u+w ${1}"
+               chmod u+w ${1}
      else
        missing "${2}/${1}"
      fi
***************
*** 95,103 ****
  }
  
  install "${SOURCES}" "${SQDATADIR}"  "ln -s"
! install "${IMAGE}"   "${VSQDATADIR}" "cp -p"
! install "${CHANGES}" "${VSQDATADIR}" "cp -p"
! 
! echo "Running ${SQUEAK}"
  
! exec ${SQUEAK}
--- 94,100 ----
  }
  
  install "${SOURCES}" "${SQDATADIR}"  "ln -s"
! install "${IMAGE}"   "${VSQDATADIR}" "cp"
! install "${CHANGES}" "${VSQDATADIR}" "cp"
  
! echo "Done.  Now start 'squeak'!"