-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.sh
executable file
·23 lines (22 loc) · 1.1 KB
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# This automatically updates/installs the template in your local templates folder
if [[ $(basename "$PWD") == "KDevelopTemplates" ]];then
mkdir -p build
cd build
rm ./*.tar.bz2
rm ./*/*.tar.bz2
rm ./*/*/*.tar.bz2
rm ./*/*/*/*.tar.bz2
cmake -DKDE_INSTALL_KTEMPLATESDIR=~/.local/share/kdevappwizard/templates ..
make install -j4
cp ./*.desktop ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
cp ./*.kdevtemplate ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
cp ./*/*.desktop ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
cp ./*/*.kdevtemplate ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
cp ./*/*/*.desktop ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
cp ./*/*/*.kdevtemplate ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
cp ./*/*/*/*.desktop ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
cp ./*/*/*/*.kdevtemplate ~/.local/share/kdevappwizard/template_descriptions 2>>/dev/null
else
echo "Please go to the project root"
fi