blob: c8c61693ad0d1a471e12b4b69a495f5a37a5e705 (
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
39
40
41
42
43
|
#!/bin/bash
a="dont_do_anything_"
if [ x = x$a ]
then
#increment all pkgrel
for i in `find -name PKGBUILD`;do
#getting pkgrel number after =
package_pkgrel=`cat $i | grep pkgrel= | cut -d'=' -f 2`
#extract number before dot in pkgrel
beforedot=`echo $package_pkgrel | cut -n -d'.' -f 1`
#add 1 to pkgrel
new_pkgrel=$[$beforedot+1]
#write it back to PKGBUILD
sed -i "s:pkgrel=${package_pkgrel}:pkgrel=${new_pkgrel}:g" $i
done
fi
find ./ -name "src" -exec rm -rf {} \;
#packages to remove
if [ x = x$a ]
then
pacman -R --nodeps klibc
pacman -R --nodeps klibc-extras
pacman -R --nodeps klibc-kbd
pacman -R --nodeps klibc-module-init-tools
pacman -R --nodeps klibc-udev
pacman -R --nodeps heimdal
fi
#build base
cd /build/r6-src-jm
#makeworld -f --asroot -s -r -i --noconfirm -c -f /home/packages local
makeworld -f --asroot -s -r --noconfirm -c -f /home/packages local
cd -
cd /home/packages
repo-add r6-testing.db.tar.gz *
cd -
|