mirror of
https://github.com/ok2cqr/cqrlog.git
synced 2024-09-21 10:27:17 +00:00
fixed creating package for armhf
This commit is contained in:
parent
2bac1f0793
commit
0d3fa0ca8e
@ -9,6 +9,17 @@ mkdir ~/tmp/cqrlog_build_$VERSION -p
|
||||
FINAL=~/tmp/cqrlog_build_$VERSION
|
||||
#whre would you like to store final build files
|
||||
|
||||
function removeProperties {
|
||||
for f in `ls $1/src/*.lfm`;
|
||||
do
|
||||
echo $f
|
||||
sed -i '/PPI =/d' $f
|
||||
sed -i '/UseDollarString =/d' $f
|
||||
done
|
||||
echo "UseDollarString and PPI properties removed"
|
||||
}
|
||||
|
||||
|
||||
#****************************************
|
||||
CTMP=`mktemp -d /tmp/tmp.XXXXXX`
|
||||
platform=`uname -m`
|
||||
@ -17,17 +28,29 @@ case $platform in
|
||||
"x86_64")
|
||||
ARCH=`echo "amd64"`
|
||||
;;
|
||||
"armv7l")
|
||||
ARCH=`echo "armhf"`
|
||||
;;
|
||||
*)
|
||||
ARCH=`echo "i386"`
|
||||
;;
|
||||
esac
|
||||
echo cqrlog_"$VERSION"_$ARCH.tar.gz
|
||||
|
||||
mkdir $CTMP/cqrlog-$VERSION -p
|
||||
mkdir $FINAL -p
|
||||
cd $CTMP
|
||||
#svn co https://cqrlog.svn.sourceforge.net/svnroot/cqrlog/trunk cqrlog-$VERSION
|
||||
git clone git://github.com/ok2cqr/cqrlog.git cqrlog-$VERSION
|
||||
|
||||
# Raspbian still has old verison of Lazarus and FreePascal
|
||||
# new properties from Lazarus 1.8 has to be removed
|
||||
if [ "$ARCH" == "armhf" ];
|
||||
then
|
||||
cd cqrlog-$VERSION
|
||||
removeProperties `pwd`
|
||||
cd ..
|
||||
fi
|
||||
exit 0
|
||||
|
||||
tar -cvf cqrlog_$VERSION.orig.tar --exclude='debian' --exclude='.git' cqrlog-$VERSION
|
||||
gzip -v9 cqrlog_$VERSION.orig.tar
|
||||
cd cqrlog-$VERSION
|
||||
|
Loading…
Reference in New Issue
Block a user