update deb & rpm build script, arch detection not working on some distribs

This commit is contained in:
Basile Burg 2017-11-16 22:58:20 +01:00
parent 71b391262f
commit f2cfe6f516
2 changed files with 5 additions and 4 deletions

View File

@ -4,8 +4,8 @@ min1=${ver//_}
min=${min1:1}
dte=$(LC_TIME='en_EN.UTF-8' date -u +"%a %b %d %Y")
arch=""
if [ $CPU = "x86_64" ]; then
arch=`uname -m`
if [ $arch = "x86_64" ]; then
arch="amd64"
else
arch="i386"

View File

@ -3,9 +3,10 @@ maj=${ver:0:1}
min1=${ver//_}
min=${min1:1}
dte=$(LC_TIME='en_EN.UTF-8' date -u +"%a %b %d %Y")
specname=coedit-$CPU.spec
arch=`uname -m`
specname=coedit-$arch.spec
buildroot=$HOME/rpmbuild/BUILDROOT/coedit-$maj-$min.$CPU
buildroot=$HOME/rpmbuild/BUILDROOT/coedit-$maj-$min.$arch
bindir=$buildroot/usr/bin
pixdir=$buildroot/usr/share/pixmaps
shcdir=$buildroot/usr/share/applications