|
2012-09-02
, 02:55
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#112
|
|
2012-09-02
, 02:57
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#113
|
|
2012-09-02
, 03:00
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#114
|
#!/bin/sh #create .deb files for packages (fremantle&harmattan) if [ ! $1 ];then echo Create .deb files for fremantle and harmattan devices echo Usage: make-deb /path/to/package exit 0 fi #step in package directory chdir "$1" #versionnumber and packagename from control file packagename=`grep "Package: " DEBIAN/control | cut -d ' ' -f 2` versionnumber=`grep "Version: " DEBIAN/control | cut -d ' ' -f 2` #remove old md5 and digsig sums rm -f DEBIAN/md5sums 2>/dev/null rm -f DEBIAN/digsigsums 2>/dev/null #list all folders except DEBIAN find | grep -v "./DEBIAN" > ../md5 #get md5 and digsig sums to DEBIAN/ while read line do if [ -f "$line" ]; then #cut "./" from beginning line=`echo "$line" | cut -c 3-` #get md5 md5sum "$line" >> DEBIAN/md5sums #get sha1 for digital signatures echo S 15 com.nokia.maemo H 40 `sha1sum "$line" | cut -c -40` R `expr length "$line"` $line >> DEBIAN/digsigsums fi done < "../md5" #remove temp file list rm -f ../md5 #package control.tar.gz and data.tar.gz tar -cvzf ../control.tar.gz -C DEBIAN/ . >/dev/null tar -cvzf ../data.tar.gz . --exclude=DEBIAN >/dev/null echo 2.0>../debian-binary #step outside package folder cd .. #create debian archive "package_version.deb" ar -rcv $packagename"_"$versionnumber.deb debian-binary control.tar.gz data.tar.gz >/dev/null #remove packaged files rm -f debian-binary control.tar.gz data.tar.gz 2>/dev/null
The Following User Says Thank You to flotron For This Useful Post: | ||
|
2012-09-02
, 03:13
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#115
|
|
2012-09-02
, 05:59
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#116
|
tar: unrecognized option '--format=gnu' BusyBox v1.19.0.git (MeeGo 3:1.19-8+0m6) multi-call binary. Usage: tar -[cxtzjhmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]... dpkg-deb: subprocess tar -cf returned error exit status 1
The Following User Says Thank You to thedead1440 For This Useful Post: | ||
|
2012-09-20
, 20:04
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#117
|
|
2012-09-20
, 21:07
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#118
|
|
2012-11-08
, 07:14
|
Posts: 39 |
Thanked: 8 times |
Joined on Feb 2012
|
#119
|
where are you running script?
N9 / N900 Youtube Videos
N9 "Faster, Darker, Better" Theme Pack
---
www.F2thaK.com