This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/expect -f | |
set force_conservative 0 ;# set to 1 to force conservative mode even if | |
;# script wasn't run conservatively originally | |
if {$force_conservative} { | |
set send_slow {1 .1} | |
proc send {ignore arg} { | |
sleep .1 | |
exp_send -s -- $arg | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo "Starting Unidata 8.1.2 install" | |
# Set environment variables | |
export UDTHOME=/usr/ud | |
export UDTBIN=$UDTHOME/bin | |
export PATH=$PATH:$UDTBIN | |
export LANG=C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo "Starting Unidata 8.1.2 uninstall" | |
# Rolling back previous Unidata if it exists | |
if [[ -d /var/tmp/812_UPGR/pre/bin/ ]]; then | |
rsync -Kavr --delete /var/tmp/812_UPGR/pre/bin/* /usr/ud/bin/ | |
fi | |
if [[ -d /var/tmp/812_UPGR/pre/lib/ ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
rpmbuild -ba ~/rpmbuild/SPECS/rocket-unidata-8.1.2.spec | |
if [ $(rpm -qa | grep -i rocket-unidata-8.1.2-1.x86_64) ]; then | |
sudo rpm -e rocket-unidata-8.1.2-1.x86_64 | |
fi | |
sudo rpm -ivh --nodeps ~/rpmbuild/RPMS/x86_64/rocket-unidata-8.1.2-1.x86_64.rpm |
NewerOlder