source: ipk/ipkg-utils-050831/ipkg-deb-unbuild@ 17841

Last change on this file since 17841 was 4890, checked in by obi, 15 years ago

[ipk] fix executable rights

  • Property svn:executable set to *
File size: 469 bytes
Line 
1#!/bin/bash
2set -e
3
4if [ $# -lt 1 ]; then
5 echo "usage: $0 package_name"
6 exit 1
7fi
8
9## This script is a nasty hack... especially the cp of $filename. Yuck!
10
11filename="$1"
12basefile=`echo $filename | sed 's/.*\///'`
13pkg=`echo $basefile | sed 's/\.deb$//' | sed 's/\.ipk$//'`
14
15mkdir $pkg
16cp $filename $pkg
17cd $pkg
18ar -x $basefile
19tar xzf data.tar.gz
20mkdir DEBIAN
21cd DEBIAN
22tar xzf ../control.tar.gz
23cd ..
24rm -f control.tar.gz data.tar.gz debian-binary $basefile
25cd ../..
Note: See TracBrowser for help on using the repository browser.