|
|
09-01-2012
, 10:55 PM
|
|
|
Posts: 308 |
Thanked: 252 times |
Joined on Jan 2012
@ Argentina
|
#112
|
|
|
09-01-2012
, 10:57 PM
|
|
|
Posts: 4,283 |
Thanked: 2,342 times |
Joined on Jan 2010
@ Australia Mate
|
#113
|
|
|
09-01-2012
, 11:00 PM
|
|
|
Posts: 308 |
Thanked: 252 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: | ||
|
|
09-01-2012
, 11:13 PM
|
|
Moderator |
Posts: 5,850 |
Thanked: 5,295 times |
Joined on Nov 2011
|
#115
|
|
|
09-02-2012
, 01:59 AM
|
|
Moderator |
Posts: 5,850 |
Thanked: 5,295 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: | ||
|
|
09-20-2012
, 04:04 PM
|
|
|
Posts: 308 |
Thanked: 252 times |
Joined on Jan 2012
@ Argentina
|
#117
|
|
|
09-20-2012
, 05:07 PM
|
|
|
Posts: 946 |
Thanked: 1,104 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#118
|
|
|
11-08-2012
, 03:14 AM
|
|
Posts: 29 |
Thanked: 7 times |
Joined on Feb 2012
|
#119
|
![]() |
| Thread Tools | Search this Thread |
|
where are you running script?
N9 / N900 Youtube Videos
N9 "Faster, Darker, Better" Theme Pack
Please, Support Development and Donate
---
www.F2thaK.com