summarylogtreecommitdiffstats
path: root/cant
blob: da9169f8ce162549f7ed7b7ce442637eb49c1243 (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
#!/bin/bash

args=(${@})
comand=${args[0]}
packages=${args[@]:1}

case $comand in
	install)
		pacman -Syu ${packages[@]}
	;;
	remove)
		pacman -R ${packages[@]}
	;;
	stand)
		pacman -R cant
	;;
	*|help)
		echo "The Canterbury Distribution Package Manager"
		echo ''
		echo "usage: cant [option] <packages>"
		echo 'options:'
		echo '	install		install packages'
		echo '	remove		remove packages'
		echo '	stand		remove the Canterbury Distribution Package Manager'
		echo '	help		this text'
		echo ''
	;;
esac