12345678910111213141516171819202122232425262728293031323334353637 |
- #!/bin/sh
- FileList=( Sim.SimInfo backup_settings progversion.txt )
- SimResultsNr=$1
- BackupDir=$2
- if [ -d $BackupDir ]
- then
- echo "BackupDir $BackupDir exists"
- else
- echo "mkdir $BackupDir -m 775"
- mkdir $BackupDir -m 775
- fi
- for file in ${FileList[*]}
- do
- echo "cp $file $BackupDir"
- cp $file $BackupDir
- done
- echo "cp *$1*eps $BackupDir"
- cp *$1*eps $BackupDir
- echo "cp *$1.xml $BackupDir"
- cp *$1.xml $BackupDir
- echo "cp *spikes*TEST$1.bin $BackupDir"
- cp *spikes*TEST$1.bin $BackupDir
- echo "cp *.inp.datTEST$1 $BackupDir"
- cp *.inp.datTEST$1 $BackupDir
- echo "cp *.inp.dat $BackupDir"
- cp *.inp.dat $BackupDir
- echo "cp *Layer.info $BackupDir"
- cp *Layer.info $BackupDir
|