#!/bin/tcsh

# Install vm_conspdr.p

# save $popsrc/vm_conspdr.p and then copy vm_conspdr.p to $popsrc
# Thanks to Steve Isard for pointing out a typo. Now fixed
# 21 Oct 2003

# prevent local files being found and compiled
mv $poplocal/local $poplocal/local.temp

ls -l $poplocal/local.temp

## now compile the new file

cd $popsrc

## compile the new file
pgcomp vm_conspdr.p

# this should show a new .o and .w file
ls -l vm_conspdr.*

# archive the new files
pglibr -r ../obj/src.wlb vm_conspdr.w

cd $popsys

pwd
echo "rebuilding safe pop11"

pglink -safe

rm rsvpop11

cp newpop11 corepop11

echo "rebuilding system saved images"
$popsrc/mksyscomp popc poplibr poplink

$popsrc/mknewpop

## this should show newpop.psv and three others
ls -l *.psv

# restore local directory
mv $poplocal/local.temp $poplocal/local

# ls -l $poplocal/local

## relink poplog (for motif: see HELP NEWPOP)
$usepop/pop/src/newpop -link -x=-xm -norsv

### The following are done by the newpop command
## $popcom/mkstartup
##
## ## Needed for next items
## setenv pop_pop11 "-$popsavelib/startup.psv"
##
## $popcom/mkplog
## $popcom/mkclisp
## $popcom/mkpml
## $popcom/mkxved


##If you have Birmingham poplog then

cd $poplocal/local/com/

./mkstartup.local
./mkxved.local
./mkclisp.local
./mkplog.local
./mkxvedpro
./mkxvedlisp
./mkeliza.local

## and any others. Show the results

ls -lt $poplocalbin
