use main soclayout mksym.sh and symlink in experiments9
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Sep 2021 10:18:19 +0000 (10:18 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Sep 2021 10:18:19 +0000 (10:18 +0000)
experiments9/mksym.sh [changed from file to symlink]
mksym.sh

deleted file mode 100755 (executable)
index 95e1297269a8ff1dc5e0ad997c46e67cfa2968b8..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-ALLIANCE_TOOLKIT=${ALLIANCE_TOOLKIT:-${HOME}/alliance-check-toolkit/}
-if [ ! -d ${ALLIANCE_TOOLKIT} ]; then
-  echo "alliance-check-toolkit not found; please set ALLIANCE_TOOLKIT"
-  exit 20
-fi
-
-echo "creating symlinks"
-
-mkdir -p mk/dks.d
-mkdir -p mk/users.d
-
-declare -a ScriptsArray=("os" "users" "binaries" "alliance"
-        "design-flow" "pr-coriolis" "pr-alliance" "pr-hibikino"
-       "synthesis-yosys"
-)
-
-for script in "${ScriptsArray[@]}"; do
-    if [ ! -L "mk/$script.mk" ]; then
-        echo "link" mk/$script.mk
-        ln -s $ALLIANCE_TOOLKIT/etc/mk/$script.mk mk/$script.mk
-    fi
-done
-
-declare -a LibsArray=("sxlib" "nsxlib" "nsxlib45" "cmos" "cmos45" "mosis"
-                     "FreePDK_45" "FreePDK_C4M45"
-)
-
-for script in "${LibsArray[@]}"; do
-    if [ ! -L "mk/dks.d/$script.mk" ]; then
-        echo "link" mk/dks.d/$script.mk
-        ln -s $ALLIANCE_TOOLKIT/etc/mk/dks.d/$script.mk mk/dks.d/$script.mk
-    fi
-done
-
-declare -a UsersArray=("lkcl" "$USER"
-)
-
-for script in "${UsersArray[@]}"; do
-    echo "User script examining $script..."
-    if [ ! -L "mk/users.d/user-$script.mk" ]; then
-        echo "link" mk/users.d/user-$script.mk
-        ln -s $ALLIANCE_TOOLKIT/etc/mk/users.d/user-$script.mk \
-               mk/users.d/user-$script.mk
-    fi
-done
-
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..645c6077990878de291838ec934cb868ed3cd331
--- /dev/null
@@ -0,0 +1 @@
+../mksym.sh
\ No newline at end of file
index a4581711235b87f58924fb3ac4495c2e6c984081..95e1297269a8ff1dc5e0ad997c46e67cfa2968b8 100755 (executable)
--- a/mksym.sh
+++ b/mksym.sh
@@ -34,10 +34,11 @@ for script in "${LibsArray[@]}"; do
     fi
 done
 
-declare -a UsersArray=("lkcl"
+declare -a UsersArray=("lkcl" "$USER"
 )
 
 for script in "${UsersArray[@]}"; do
+    echo "User script examining $script..."
     if [ ! -L "mk/users.d/user-$script.mk" ]; then
         echo "link" mk/users.d/user-$script.mk
         ln -s $ALLIANCE_TOOLKIT/etc/mk/users.d/user-$script.mk \