Browse Source

* local source installation independent script

mazen 22 năm trước cách đây
mục cha
commit
773c99e9ba
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      compiler/mppcsparc

+ 3 - 2
compiler/mppcsparc

@@ -1,7 +1,8 @@
 #!/bin/bash
-if [[ "$1" != "" ]]
+if [[ "$#" != "0" ]]
 then
-  FPCSRC="$HOME/FPC/Demo/src/fpc"
+  cd "`dirname "$0"`/.."
+  FPCSRC="$PWD"
   cd $FPCSRC/tests/sparc
   $FPCSRC/compiler/ppcsparc -s -al -Fi$FPCSRC/rtl/{unix,linux,sparc,inc} -dSPARC "$@"
 else