-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathapply_extra
More file actions
26 lines (19 loc) · 725 Bytes
/
apply_extra
File metadata and controls
26 lines (19 loc) · 725 Bytes
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
#!/bin/bash
# run the installer
chmod +x ModelSimSetup-linux.run
./ModelSimSetup-linux.run \
--modelsim_edition modelsim_ase \
--mode unattended \
--unattendedmodeui none \
--accept_eula 1 \
--installdir ./
# cleanup
rm -rf ModelSimSetup-linux.run logs uninstall
# rename folder so the packaging would be compatible with other modelsim editions
mv modelsim_* modelsim
# patchelf workaround
patchelf --set-interpreter /app/lib/i386-linux-gnu/ld-linux.so.2 modelsim/linuxaloem/mgls/bin/lmutil
patchelf --set-interpreter /app/lib/i386-linux-gnu/ld-linux.so.2 modelsim/linuxaloem/mgls/bin/lmgrd
# correct permissions
find modelsim \! -perm /o+rwx -exec chmod o=g {} \;
sed -i "s,linux_rh60,linux,g" modelsim/vco