|
Revision 18, 408 bytes
(checked in by alkahan, 2 years ago)
|
convert control file to unix format. exclude .svn directories in build.sh
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
name=$(sed -n 's/Package: \(.*\)/\1/p' control/control) |
|---|
| 4 |
version=$(sed -n 's/Version: \(.*\)/\1/p' control/control) |
|---|
| 5 |
pkg_file=${name}_${version}_mipsel.ipk |
|---|
| 6 |
|
|---|
| 7 |
tar -C control --exclude *.svn* -cf control.tar . |
|---|
| 8 |
tar -C data --exclude *.svn* -cf data.tar . |
|---|
| 9 |
|
|---|
| 10 |
gzip -9 control.tar |
|---|
| 11 |
gzip -9 data.tar |
|---|
| 12 |
|
|---|
| 13 |
tar -cf $pkg_file ./control.tar.gz ./data.tar.gz ./debian-binary |
|---|
| 14 |
gzip -9 $pkg_file |
|---|
| 15 |
mv $pkg_file.gz $pkg_file |
|---|