Changeset 2925

Show
Ignore:
Timestamp:
06/03/10 13:06:02
Author:
bleibson
Message:

Checkpoint. I'm in the middle of things and shifting to another computer....

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/util/processLocationData.sh

    r2912 r2925  
    11#! /bin/bash -f 
     2 
     3#--- Settings --- 
     4 
     5uidPrefix="bw" 
     6uidSuffix="@berkeley.edu" 
     7locLdapContainer='ou=locations,dc=berkeley,dc=edu' 
     8peopleLdapContainer='ou=locations,dc=berkeley,dc=edu' 
    29 
    310# data was generated by taking the Berkeley data and putting it through `grep '^[a-zA-Z ]* ([0-9]*)'` 
    411# to get records that are likely to be a building and a room number. 
    5 # 
    612 
     13# input 
     14INFILE=BerkeleyLocRecords.txt 
    715# field seperator used in input file 
    816FS='|' 
    917 
    10 # input and output files 
    11 INFILE=BerkeleyLocRecords.txt 
     18# output 
    1219LDAPLOC=ldapLoc 
    1320VCARDLOC=vcardLoc 
     
    1825objectclass: calendarresource 
    1926objectclass: schedapprovalinfo 
    20 objectclass: organizationalUnit" 
     27objectclass: organizationalUnit"locLdapContainer='ou=locations,dc=berkeley,dc=edu' 
     28peopleLdapContainer='ou=locations,dc=berkeley,dc=edu' 
    2129VCARDHeader="BEGIN:VCARD 
    2230   VERSION:4.0" 
    2331VCARDFooter="   END:VCARD" 
    24 uidPrefix="bw" 
    25 uidSuffix="@berkeley.edu" 
     32 
     33#--- end settings --- 
    2634 
    2735cp /dev/null $LDAPLOC 
     
    96104         
    97105    #LDAP 
    98 echo "dn: cn=$cn,ou=locations,dc=berkeley,dc=edu 
     106echo "dn: cn=$cn,$locLdapContainer 
    99107$LDAPSetLines 
    100108calresourcekind: location 
     
    123131### people 
    124132  if [ $buildPerson = "true" ]; then 
    125         echo "dn: cn=${roomManager}, ou=people,dc=berkeley,dc=edu" >> $LDAPPEOPLE  
     133        echo "dn: cn=${roomManager}, $peopleLdapContainer >> $LDAPPEOPLE  
    126134  fi 
    127135