GenAppTran.sh
From radmind
This is a very rough script. Use at your own risk.
This script will create and store a transcript for each application in ./Applications. This is handy for creating transcripts for multiple drag-and-drop applications at once. To use:
- Download GenAppTran.sh
- Make GenAppTran.sh executable
- Modify GenAppTran.sh with your radmind server information
- Create an "Applications" directory
- Drag applications to new directory
- Set desired permissions
- Run GenAppTran.sh from Applications parent directory
#!/bin/sh # GenAppTran.sh by Patrick McNeal # Copyright University of Michigan 2007 IFS=" " HOST=RADMINDSERVER FSDIFF=/usr/local/bin/fsdiff LCREATE=/usr/local/bin/lcreate for APPLICATION in `ls Applications`;do if [ $APPLICATION = ".DS_Store" ]; then continue; fi TRANSCRIPT=`echo $APPLICATION | sed 's/[ ]//g'` TRANSCRIPT=`echo $TRANSCRIPT | sed 's/.app$/.T/'` echo "Createing appliation transcript for $APPLICATION..." echo "\tCreating transcript $TRANSCRIPT..." $FSDIFF -C -c sha1 -K /dev/null ./Applications/$APPLICATION | grep -v "/.DS_Store" > /tmp/$TRANSCRIPT echo "\tStoring $TRANSCRIPT..." $LCREATE -q -h $HOST /tmp/$TRANSCRIPT echo "\tCleaning up $TRANSCRIPT..." rm /tmp/$TRANSCRIPT echo "Done." done