source: trunk/dports/emulators/lisaem/files/patch-build.sh.diff @ 67388

Last change on this file since 67388 was 38627, checked in by ryandesign@…, 12 years ago

lisaem: add the patchfile that goes with r38613

File size: 1.4 KB
RevLine 
[38627]1--- build.sh 2007-12-11 08:26:12.000000000 -0600
2+++ build.sh 2008-07-25 18:35:33.000000000 -0500
3@@ -293,7 +293,6 @@
4   ;;
5  build*)    echo ;;    #default - nothing to do here, this is the default.
6  install)   
7-            [ -z "$CYGWIN" ] && [ "`whoami`" != "root" ] && echo "Need to be root to install. try sudo ./build.sh $@" && exit 1
8             INSTALL=1;
9             ;;
10 
11@@ -849,15 +848,6 @@
12 cd ../bin
13 echo -n " "
14 
15-# Report size and hashes ####
16-
17-if [ -z "$DARWIN" ]
18-then
19-    SIZE="`du -sh lisaem 2>/dev/null`"
20-else
21-    SIZE="`du -sh LisaEm.app 2>/dev/null`"
22-fi
23-
24 
25 if [ -n "$DARWIN" ]
26 then
27@@ -895,15 +885,25 @@
28     then
29       cd ../bin/
30       echo Installing LisaEm.app
31-      tar cf - ./LisaEm.app | (cd $PREFIX; tar xf -)
32-      mkdir -pm755 /usr/local/bin
33-      echo Installing lisafsh-tool and lisadiskinfo to /usr/local/bin
34+      tar cf - ./LisaEm.app | (cd $PREFIXAPP; tar xf -)
35+      mkdir -pm755 $PREFIXBIN
36+      echo Installing lisafsh-tool and lisadiskinfo to $PREFIXBIN
37       chmod 755 lisafsh-tool lisadiskinfo
38-      cp lisafsh-tool lisadiskinfo /usr/local/bin
39+      cp lisafsh-tool lisadiskinfo $PREFIXBIN
40       echo Done Installing.
41     fi
42 fi
43 
44+
45+# Report size and hashes ####
46+
47+if [ -z "$DARWIN" ]
48+then
49+    SIZE="`du -sh lisaem 2>/dev/null`"
50+else
51+    SIZE="`du -sh LisaEm.app 2>/dev/null`"
52+fi
53+
54 # some older OS's don't support du -sh, so fall back to du -sk and convert to MB's
55 if [ -z "$SIZE" ]
56 then
Note: See TracBrowser for help on using the repository browser.