summarylogtreecommitdiffstats
path: root/install-scripts.patch
blob: 01fa2a00c7c841ef1e32ae2cbf5e3085e5cd8a42 (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
--- install-scripts	2024-06-04 16:44:17.698909468 +0200
+++ install-scriptsfixed	2024-06-04 16:43:34.866749545 +0200
@@ -27,9 +27,9 @@
 #
 #
 
-if [ $# -ne 0 ]
+if [ $# -ne 1 ]
 then
-        echo "Usage: `basename $0`"
+        echo "Usage: `basename $0` dest"
         exit 1
 fi
 
@@ -37,7 +37,7 @@
 do
     sed 's/VLSI_TOOLS_SRC/ACT_HOME/g' < $i > tmpfile
     src=tmpfile
-    dest=$ACT_HOME/scripts/$i
+    dest=$1/scripts/$i
 
     if [ -r $src ]
     then
@@ -60,5 +60,5 @@
 
 for i in install getarch getos getbaseos move-in move-out mymakedepend linkso findpkg tconfig
 do
-    chmod +x $ACT_HOME/scripts/$i
-done
+    chmod +x $1/scripts/$i
+done