📄 micesetup.sh
字号:
#!/bin/sh## micesetup.sh - Perform per-user setup for Multi-ICE.# THIS MUST BE RUN FROM THE TOP LEVEL ADS INSTALL DIRECTORY## Copyright (c) ARM Limited 1998-2002. All Rights Reserved.## RCS $Revision: 1.8.6.1 $# Checkin $Date: 2002/02/06 17:24:51 $# Revising $Author: sellis $#PRODUCT_NAME="Multi-ICE"BOOK_NAME="ARM Multi-ICE v2.2"CURRDIR=`pwd`#ECHO=/usr/bin/echo## DE50903 built in echo does not do \n#ECHO=echoTHEOSNAME=`uname -s`if [ "$THEOSNAME" = "Linux" ]thenECHO="/bin/echo -e"fi#---------------------------------# Setup Multi-ICE registry entries#---------------------------------if [ ! "$WUHOME" ]then $ECHO "Your WinD/U environment is not set up. micesetup.sh needs" $ECHO "to modify the registry before Multi-ICE can be used. Please" $ECHO "set up the environment as you would before using ADS or ADU and try again." $ECHO "Exiting..." exitfiif [ ! -d "$CURRDIR"/multiice_mulfiles ]then $ECHO "micesetup.sh was unable to locate the $PRODUCT_NAME" $ECHO "mulfile directory. Make sure you are running this" $ECHO "script from your ADS or ADU directory, and that" $ECHO "$PRODUCT_NAME has been successfully installed" $ECHO "Exiting..." exitfi$ECHO "Setting $PRODUCT_NAME registry entry"$ECHO "to point to $CURRDIR/multiice_mulfiles..."setreg 2.2 "$CURRDIR"/multiice_mulfilesif [ "$?" -ne "0" ]then exitfi#----------------------------# Setup Multi-ICE online book#----------------------------if [ -f "$HOME"/.ebtrc ]then if [ -d common/OnlineBooks/MICE ] then grep "$BOOK_NAME" "$HOME"/.ebtrc > /dev/null if [ "$?" -ne "0" ] then $ECHO "Adding the $PRODUCT_NAME book to your local .ebtrc file..." mv "$HOME"/.ebtrc "$HOME"/.ebtrc.orig $ECHO "COLLECTION $CURRDIR/common/OnlineBooks/MICE=$BOOK_NAME" > "$HOME"/.ebtrc cat "$HOME"/.ebtrc.orig >> "$HOME"/.ebtrc fi fifi$ECHO "micesetup.sh completed successfully."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -