diff options
author | Angelo Naselli <anaselli@mageia.org> | 2013-01-03 23:59:54 +0000 |
---|---|---|
committer | Angelo Naselli <anaselli@mageia.org> | 2013-01-03 23:59:54 +0000 |
commit | 3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b (patch) | |
tree | 761880a99b09fedb935764ee37de300d56b562d9 | |
parent | 212e08b5a35383486d80e09c8a3823d8b04d8424 (diff) | |
download | colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar.gz colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar.bz2 colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar.xz colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.zip |
Added a silly script to setup developer environment
-rw-r--r-- | extras/README | 5 | ||||
-rwxr-xr-x | extras/create_link.sh | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/extras/README b/extras/README index 9adf705..a0b6241 100644 --- a/extras/README +++ b/extras/README @@ -13,3 +13,8 @@ Add AdminPanel to the include path (for developers) symlink trunk/AdminPanel to /usr/lib/perl5/<currentversion>/AdminPanel where currentversion could be for example 5.16.2 + +Additional notes: +1. if you have installed old org.mageia.policykit.pkexec.policy remove it from /usr/share/polkit-1/actions/ +2. you can use at your own risk our script from this directory create_link.sh + diff --git a/extras/create_link.sh b/extras/create_link.sh new file mode 100755 index 0000000..1f1dab2 --- /dev/null +++ b/extras/create_link.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +apanel=`rpm --eval %perl_privlib`/AdminPanel + +if [ -L $apanel ] +then + rm $apanel +fi + +if [ -f /usr/share/polkit-1/actions/org.mageia.policykit.pkexec.adminpanel.policy ] +then + rm /usr/share/polkit-1/actions/org.mageia.policykit.pkexec.adminpanel.policy +fi + +pushd . +cd .. +cp extras/org.mageia.policykit.pkexec.adminpanel.policy /usr/share/polkit-1/actions/ +ln -s $PWD/AdminPanel `rpm --eval %perl_privlib` +popd + |