File: biocUpdate.sh

package info (click to toggle)
bitseq 0.7.5+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 676 kB
  • sloc: cpp: 7,043; python: 562; makefile: 150; sh: 52
file content (24 lines) | stat: -rwxr-xr-x 521 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Script that automizes copying into Bioconductor repository.
# THE ASSUMPTION IS that there were no updates made to Bioc sources, thus can be just replaced by sources from C++ version.


if [ $# -ne 1 ]
then
   echo "Usage: provide path to bioc sources directory (.../devel/src)"
   echo "  biocUpdate.sh [dirPath]"
   exit
fi

for i in `ls $1`
do
   if [  -e $i  -a  -f $i  ]
   then
      other="${1}/${i}"
      if ! diff -q $i $other > /dev/null
      then
         cp -v $i $other;
      fi
   fi
done