summaryrefslogtreecommitdiffstats
path: root/enlightenment/enlightenment/rebuild_e17
blob: 3e96cc8fdc7dfd5ca52f185de3eb3bc22f75ef02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#
# Script available under the terms of the Nutritive licence.
# (do what you want, as long as it and it's derivated are free)
#
# Script to help with enlightenment port rebuild
#
# Based on Victor Martinez's script, from Crux's e17 repository.
#
# An eselect module that do it a better way should arrive... a day. :)
#+ Until this day, you can use this small script.
#
# I already tested it while Enlightenment was open. As long as you don't
#+ segfault, it works. ;)
#

. /etc/pkg++.conf

e17_packages=(eina embryo eet evas ecore efreet e_dbus edje enlightenment)

prt-get remove ${e17_packages[@]}

: ${PKGMK_PKGFILE:="Pkgfile"}

if [[ -e "$PKGMK_PKGFILE" ]]; then
	cd ..
fi

for package in ${e17_packages[@]}; do
	(
		cd $package
		pkg++ -f $@
		pkg++ -f -us
		pkg++ -f -um
		pkg++ -f -uf
	) || exit 1
done