Skip to content

Instantly share code, notes, and snippets.

View jeansymolanza's full-sized avatar

Jeansy Molanza jeansymolanza

View GitHub Profile
#!/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
}
#!/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
#!/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
#!/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