-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
135 lines (100 loc) · 3.2 KB
/
Copy pathinstall
File metadata and controls
135 lines (100 loc) · 3.2 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
OSS_CAD_SUITE_PATH=$HOME/.local/oss-cad-suite
# -- File for checking if it was already installed or not
CHECK_FILE=$OSS_CAD_SUITE_PATH/YOSYS-VERSION
# -- Date for the version to download
YEAR=2026
MONTH=03
DAY=24
# -- Oss_cad_suite repo
REPO_URL="https://github.com/FPGAwars/tools-oss-cad-suite"
# -- Version to download
VERSION_ID=$YEAR$MONTH$DAY
# -- date
DATE="$YEAR-$MONTH-$DAY"
# -- Package name
PKG_NAME="apio-oss-cad-suite-linux-x86-64-"$VERSION_ID".tgz"
# -- Package URL
PKG_URL=$REPO_URL"/releases/download/"$DATE/$PKG_NAME
#-- ANSI colors
GREEN='\033[0;32m'
RED='\033[0;31m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
CYAN="\033[36m"
MAG="\033[35m"
RESET='\033[0m'
printf "\n"
printf "$YELLOW""────────────────────────────────\n"
printf "$YELLOW"" INSTALLING OSS-CAD-SUITE\n"
printf "$YELLOW""────────────────────────────────\n"
printf "$RESET"
# -- Check if it has been already installed
if [ -f "$CHECK_FILE" ]; then
printf "📌 Tool already installed...\n"
else
# -- Download the .tgz
printf "\n"
printf "🔵 Downloading tarbar: $PKG_NAME\n"
printf " ➡️ URL: $PKG_URL\n\n"
wget -c -q --show-progress $PKG_URL
printf "\n"
# -- Create the installation folder, it is does not exist yet
mkdir -p $OSS_CAD_SUITE_PATH
# -- Uncompress it
printf "🔵 Installing in $OSS_CAD_SUITE_PATH\n"
printf "📦 Uncompressing..."
tar zxf $PKG_NAME -C $OSS_CAD_SUITE_PATH
printf "OK!\n"
fi
printf "\n"
# -- Local path where to store the tools-openxc7 package
OPENXC7_INSTALL_PATH=$HOME/.local/openxc7
# -- File for checking if it was already installed or not
CHECK_FILE=$OPENXC7_INSTALL_PATH/VERSION
# -- Date for the version to download
YEAR=2026
MONTH=05
DAY=29
# -- Openxc7 repo
REPO_URL="https://github.com/FPGAwars/tools-openxc7"
# -- Version to download
VERSION_ID=$YEAR$MONTH$DAY
# -- date
DATE="$YEAR-$MONTH-$DAY"
# -- Package name
PKG_NAME="apio-openxc7-linux-x86-64-"$VERSION_ID".tgz"
# -- Package URL
PKG_URL=$REPO_URL"/releases/download/"$DATE/$PKG_NAME
#-- ANSI colors
GREEN='\033[0;32m'
RED='\033[0;31m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
CYAN="\033[36m"
MAG="\033[35m"
RESET='\033[0m'
printf "\n"
printf "$YELLOW""────────────────────────────────\n"
printf "$YELLOW"" INSTALLING OPENXC7\n"
printf "$YELLOW""────────────────────────────────\n"
printf "$RESET"
# -- Check if it has been already installed
if [ -f "$CHECK_FILE" ]; then
printf "📌 Tool already installed...\n"
else
# -- Download the tarball
printf "\n"
printf "🔵 Downloading tarball: $PKG_NAME\n\n"
printf " ➡️ URL: $PKG_URL\n\n"
wget -c -q --show-progress $PKG_URL
printf "\n"
# -- Create the installation folder, it is does not exist yet
mkdir -p $OPENXC7_INSTALL_PATH
# -- Uncompress it
printf "🔵 Installing in $OPENXC7_INSTALL_PATH\n"
printf "📦 Uncompressing..."
printf "$PKG_NAME\n"
tar zxf $PKG_NAME -C $OPENXC7_INSTALL_PATH
printf "OK!\n"
fi
printf "\n"