File: md5_sums

package info (click to toggle)
felt 3.02-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 16,460 kB
  • ctags: 6,885
  • sloc: ansic: 72,103; fortran: 3,614; yacc: 2,825; lex: 1,172; sh: 311; makefile: 279
file content (14 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

TMP_FILE=./TMP_file

for TMPDIR ; do
   find debian/$TMPDIR/* -type f ! -regex "^debian/$TMPDIR/DEBIAN/.*" \
                                 ! -regex "^debian/$TMPDIR/etc/.*" | \
                          sed s@debian/$TMPDIR/@@g | sort > $TMP_FILE
   cd debian/$TMPDIR  
   xargs < ../../$TMP_FILE md5sum > DEBIAN/md5sums
   cd ../../
   rm -f $TMP_FILE
   chown root.root debian/$TMPDIR/DEBIAN/md5sums
done