mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-22 07:37:40 +00:00
[linux] put correct VERSION into source tarballs
LAUNCHPAD_ID not needed, use group id instead
This commit is contained in:
parent
3cd54d9bc1
commit
dc5c5a08b1
2 changed files with 10 additions and 11 deletions
|
|
@ -47,14 +47,19 @@ mkdir -p dist
|
|||
|
||||
# configure and make dist for autotool projects
|
||||
for proj in ${autotool_projects}; do
|
||||
cd $proj
|
||||
echo "configure $proj"
|
||||
cd $proj
|
||||
oldvers=`cat VERSION`
|
||||
vers=`./configure -version|grep kmfl|grep -Po "${proj} configure \K[^a-z]*"`
|
||||
echo "$vers" > VERSION
|
||||
rm -rf ../build-$proj
|
||||
mkdir -p ../build-$proj
|
||||
cd ../build-$proj
|
||||
../$proj/configure
|
||||
make dist
|
||||
mv *.tar.gz ../dist
|
||||
cd $BASEDIR
|
||||
cd $BASEDIR
|
||||
echo "$oldvers" > VERSION
|
||||
done
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,8 @@
|
|||
|
||||
# must be run from linux dir
|
||||
|
||||
# parameters: [UPLOAD="yes"] [LAUNCHPAD_ID="<me>"] [PROJECT="<project>"] [DIST="<dist>"] ./scripts/launchpad.sh
|
||||
# parameters: [UPLOAD="yes"] [PROJECT="<project>"] [DIST="<dist>"] ./scripts/launchpad.sh
|
||||
# UPLOAD="yes" do the dput for real
|
||||
# LAUNCHPAD_ID="<me>" to set the launchpad id to dput to
|
||||
# PROJECT="<project>" only upload this project
|
||||
# DIST="<dist>" only upload for this distribution
|
||||
|
||||
|
|
@ -14,16 +13,11 @@
|
|||
set -e
|
||||
|
||||
if [ "${UPLOAD}" == "yes" ]; then
|
||||
SIM=
|
||||
SIM=""
|
||||
else
|
||||
SIM="-s -u"
|
||||
fi
|
||||
|
||||
if [ "${LAUNCHPAD_ID}" == "" ]; then
|
||||
echo "you must set your LAUNCHPAD_ID in the enviroment for dputting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! `which xmllint` ]; then
|
||||
echo "you must install xmllint (libxml2-utils package) to use this script"
|
||||
exit 1
|
||||
|
|
@ -71,7 +65,7 @@ for proj in ${projects}; do
|
|||
done
|
||||
cd ..
|
||||
for dist in ${distributions}; do
|
||||
dput ${SIM} ppa:${LAUNCHPAD_ID}/keyman-daily ${proj}_${version}-1~${dist}_source.changes
|
||||
dput ${SIM} ppa:keymanapp/keyman-daily ${proj}_${version}-1~${dist}_source.changes
|
||||
done
|
||||
cd ${BASEDIR}
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue