File: log

package info (click to toggle)
oxref 2.02.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 692 kB
  • sloc: cpp: 1,282; makefile: 131; sh: 48
file content (9 lines) | stat: -rwxr-xr-x 423 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#!/bin/bash

find tmp/install/$1 -type f -exec md5sum "{}" \; | 
                                        sed 's|tmp/install/'$1'|'$2'|' >> $3
find tmp/install/$1 -type l -exec printf "link %s\n" "{}" \; |
                                        sed 's|tmp/install/'$1'|'$2'|' >> $3
find tmp/install/$1 -type d -exec printf "dir %s\n" "{}" \;  |
                                        sed 's|tmp/install/'$1'|'$2'|' >> $3