mirror of
https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu.git
synced 2024-12-23 06:26:11 +00:00
New versionning and install method
This commit is contained in:
parent
b6890df71e
commit
21a97c5bf0
53
makerelease
53
makerelease
@ -1,8 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
prjname=plasma-containmentactions-customdesktopmenu
|
if [ "$1" == "" ]; then
|
||||||
version=$(date +"%Y.%m.%d.%H.%M.%S")
|
echo "Error: No version provided"
|
||||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
echo "./makerelease 0.0.1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
ssh -T git@github.com
|
ssh -T git@github.com
|
||||||
if [ ! "$?" = "1" ]; then
|
if [ ! "$?" = "1" ]; then
|
||||||
@ -10,13 +12,15 @@ if [ ! "$?" = "1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#scp "matmoul@web.sourceforge.net:/home/frs/project/$prjname/README.txt" /dev/null
|
scp "matmoul@web.sourceforge.net:/home/frs/project/plasma-custom-desktop-menu/README.txt" /dev/null
|
||||||
#if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
# echo "No Sourceforge ssh key loaded exiting..."
|
echo "No Sourceforge ssh key loaded exiting..."
|
||||||
# exit 1
|
exit 1
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
version=$1
|
||||||
read -p "Current branch is $branch. Continue ? (y/N)" choice
|
read -p "Current branch is $branch. Continue ? (y/N)" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
n|N|'' )
|
n|N|'' )
|
||||||
@ -35,26 +39,13 @@ echo ""
|
|||||||
echo "Finalise lib script..."
|
echo "Finalise lib script..."
|
||||||
sed -i /X-KDE-PluginInfo-Version/c\X-KDE-PluginInfo-Version=$version src/plasma-containmentactions-customdesktopmenu.desktop
|
sed -i /X-KDE-PluginInfo-Version/c\X-KDE-PluginInfo-Version=$version src/plasma-containmentactions-customdesktopmenu.desktop
|
||||||
|
|
||||||
echo "Make tar.gz file"
|
|
||||||
cp -R src plasma-containmentactions-customdesktopmenu
|
|
||||||
tar -zcvf releases/plasma-containmentactions-customdesktopmenu-$version.tar.gz plasma-containmentactions-customdesktopmenu/*
|
|
||||||
git add releases/plasma-containmentactions-customdesktopmenu-$version.tar.gz
|
|
||||||
rm -R plasma-containmentactions-customdesktopmenu
|
|
||||||
|
|
||||||
echo "Make last commit..."
|
echo "Make last commit..."
|
||||||
git commit -a -m "New Release : $version"
|
git commit -a -m "Version $version"
|
||||||
|
|
||||||
if [ ! "$branch" = "master" ]; then
|
if [ ! "$branch" = "master" ]; then
|
||||||
echo "Merge branch $branch to master..."
|
echo "Merge branch $branch to master..."
|
||||||
git checkout master
|
git checkout master
|
||||||
git merge $branch
|
git merge $branch
|
||||||
|
|
||||||
read -p "Delete branch $branch ? (y/N)" choice
|
|
||||||
case "$choice" in
|
|
||||||
y|Y )
|
|
||||||
git branch -D $branch
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -p "Publish to server ? (Y/n)" choice
|
read -p "Publish to server ? (Y/n)" choice
|
||||||
@ -64,19 +55,13 @@ case "$choice" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "Push release..."
|
|
||||||
git push
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Sourceforge :
|
|
||||||
|
|
||||||
echo "Publish release..."
|
echo "Publish release..."
|
||||||
scp -r releases/plasma-containmentactions-customdesktopmenu-$version.tar.gz matmoul@web.sourceforge.net:/home/frs/project/plasma-custom-desktop-menu/releases/
|
#Github
|
||||||
|
git push --tags
|
||||||
|
#Sourceforge :
|
||||||
|
wget https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu/archive/v${version}.tar.gz
|
||||||
|
scp -r v${version}.tar.gz matmoul@web.sourceforge.net:/home/frs/project/plasma-custom-desktop-menu/releases/
|
||||||
|
rm v${version}.tar.gz
|
||||||
|
|
||||||
if [ ! "$branch" = "master" ]; then
|
if [ ! "$branch" = "master" ]; then
|
||||||
git checkout $branch
|
git checkout $branch
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@ rm -R -f build
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
installlibdir=$(dirname $(dirname $(find /usr -name plasma_containmentactions_applauncher.so)))
|
installlibdir=$(dirname $(find /usr -name plasma_containmentactions_contextmenu.so))
|
||||||
|
|
||||||
cmake -DKDE_INSTALL_LIBDIR=$installlibdir ..
|
cmake -DKDE_INSTALL_LIBDIR=$installlibdir ..
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user