blob: b861535250eee7b37a5bd1aafe8bef95fa531b00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
config=/etc/pacman.conf
cache=/var/cache/pacman/pkg
if ! grep '^\[multilib\]' $config; then
echo "[multilib]" >$config
echo "Include = /etc/pacman.d/mirrorlist" >$config
fi
packages=$(mktemp)
ls $cache >$packages
pacman --noconfirm -Syyuu && pacman --noconfirm -S git cmake mingw-w64-toolchain wine # assume base-devel
if [ "$1" = "-C" ]; then
ls $cache >>$packages
sort $packages | uniq -D | xargs rm -f
fi
rm -f $packages
|