Skip to content
Snippets Groups Projects
Commit 878603ef authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

fix bug in build-package.sh

parent 48d0ee25
No related branches found
No related tags found
No related merge requests found
......@@ -23,21 +23,16 @@ arch_flag=`getconf -a|grep LONG_BIT | sed -e 's/LONG_BIT\s*//'`
os_version=`lsb_release -d -s -c | sed -e '1d'`
# If intrepid(Ubuntu8.10), then use appropriate changelog file
cp sflphone/debian/changelog..$os_version sflphone/debian/changelog
#if [ $os_version == "intrepid" ];then
# cp sflphone/debian/changelog.intrepid sflphone/debian/changelog
#else
# cp sflphone/debian/changelog.hardy sflphone/debian/changelog
#fi
cp sflphone/debian/changelog.$os_version sflphone/debian/changelog
# Remove useless git directory
rm sflphone/.git/ -rf
# Copy the appropriate control file based on different archtecture
if [ $arch_flag -eq 32 ];then
cp sflphone/debian/control..$os_version..i386 sflphone/debian/control
cp sflphone/debian/control.$os_version.i386 sflphone/debian/control
elif [ $arch_flag -eq 64 ];then
cp sflphone/debian/control..$os_version..amd64 sflphone/debian/control
cp sflphone/debian/control.$os_version.amd64 sflphone/debian/control
fi
echo "Building sflphone package on Ubuntu $os_version $arch_flag bit architecture...."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment