DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦9c075f2be⟧ TextFile

    Length: 2557 (0x9fd)
    Types: TextFile
    Notes: UNIX file
    Names: »install«

Derivation

└─⟦657bff2be⟧ Bits:30004160/disk1.imd SW95860 UNIPLEX+ release 1.0 (dansk)
└─⟦657bff2be⟧ UNIX Filesystem
    └─⟦this⟧ »ua/new/usr/UAP/.installation/AOS/install« 

TextFile


: 'AOS/install

L..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..R

Usage:   install {1|2}

Assumes: INFORMIXDIR set/exported
         TERM_DATA set to "TERMINFO" on that sort of machine
         Uredirect set
         "PWD" is UAP

Exits:   0 - OK
         other - fatal error, already reported

         Included compilation af at386 SAT386 termdefs - 150888 RC/AGJ
'

case "$1" in
1)
   case "`sed -n '/^DATEFMT=/p' uniplex.sys 2>/dev/null`" in
   *DD/MM/YY*) : UK date format
         F=diary/diary.holiday
         case "`sed -n '/^#HOLIDAYS-UK *$/p' $F 2>/dev/null`" in
         ?HO*) : 'We have UK date format and HOLIDAYS-UK, so
                  flip all #HOLIDAYS* section names to #x-NAME
                  and set #HOLIDAYS-UK to #HOLIDAYS'
               ed - $F <<\EOF >/dev/null 2>&1
/^#HOLIDAYS-UK *$/
s/^#/(#)/
1,$s/^#HOLIDAYS/#x-HOLIDAYS/
1
/^(#)/
s/.*/#HOLIDAYS/
w
q
EOF
               echo "DD/MM/YY date format in effect - UK holidays enabled"
               ;;
         esac
         ;;
   esac

   : All errors are silently ignored!:
   >/dev/null 2>/dev/null

   mkdir ucard/ucards > /dev/null 2>&1
   chmod 777 ucard/ucards
   cd ucard/ucards
   UNIPLEX=$Uredirect
   export UNIPLEX
   : Set up ESC to send to ESC-q to ucard
   ESC=`echo|tr '\012' '\033'`
   echo $EN "${ESC}q$CEE" | ucard -t1 -c ./addresses > /dev/null 2>&1
   chmod 666 addresses.*
   cd ../..


   >> diary/diary.alarms
   chmod 666 diary/diary.alarms
   >> diary/diary.alarms.x
   chmod 666 diary/diary.alarms.x
  mkdir diary/diary > /dev/null 2>&1
   chmod 777 diary/diary

   >> uniplex.alias
   chmod 666 uniplex.alias

   : Recompile terminal descriptions at386, SAT386 as these have been
   : changed in Tcap

   echo "
   UNIPLEX is updating the description of your terminal types at386/SAT386..."
   syscomp at386
   syscomp SAT386
   ;;

*) : phase 2.
   : 'Following sed script will only print lines that contain legal names'
   OKNAME='/[-a-zA-Z0-9,.][-a-zA-Z0-9,.]*/p'
   if test -f /etc/sysid; then
      INSTALL_NAME=`sed -n "$OKNAME" </etc/sysid`
      : If unsuitable name, rename sysid
      if test -z "$INSTALL_NAME"; then
         save.file /etc sysid
      fi
   fi

   : If sysid saved, or did not exist, create it

   if test ! -f /etc/sysid; then
      INSTALL_NAME=`uname -n 2>&1 | sed -n "$OKNAME"`
      if test -z "$INSTALL_NAME"; then
         INSTALL_NAME=UNIPLEX
      fi
      echo "$INSTALL_NAME" >/etc/sysid
      echo "System name set to \"$INSTALL_NAME\" in /etc/sysid"
   fi
   ;;

esac

exit 0