buid improvement

This commit is contained in:
Laurent chretienneau 2012-09-23 00:25:22 +02:00
parent 429164ed12
commit 18fda6a9e9
2 changed files with 36 additions and 0 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,15 @@
#!/bin/bash
P="$1"
DEB="$2"
DEB2="$3"
cd "$P"
mkdir -p "$P"/tmp
cd "$P"/tmp
ar -x "$P"/"$DEB"
gnutar -xzvf control.tar.gz
gnutar -xzvf data.tar.gz
gnutar --numeric-owner --owner=0 --group=0 -czvf control.tar.gz control postinst postrm
gnutar --numeric-owner --owner=0 --group=0 -czvf data.tar.gz usr
ar -r "$P"/"$DEB2" debian-binary control.tar.gz data.tar.gz
cd ..
rm -rf tmp