File: fix-deb.sh

package info (click to toggle)
nitrokey-app 1.4.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,400 kB
  • sloc: cpp: 13,948; python: 1,649; ansic: 229; xml: 93; sh: 13; makefile: 10
file content (12 lines) | stat: -rwxr-xr-x 252 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e
rm -rf fix_up_deb
mkdir fix_up_deb
dpkg-deb -x $1 fix_up_deb
dpkg-deb --control $1 fix_up_deb/DEBIAN
rm $1
chmod 0644 fix_up_deb/DEBIAN/md5sums
find -type d -print0 |xargs -0 chmod 755
fakeroot dpkg -b fix_up_deb $1
rm -rf fix_up_deb