blob: bc47e704361b1446e4a13f69abc50c382a7498f6 (
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
44
45
46
47
|
#! /bin/bash
# Needs to be passed the version number as an argument!
[[ $1 ]] || exit
echo "Working..."
# Paths for syncing
path="/home/colin/code/haskell/aura/aur-pkgs/aura-bin"
aura="/home/colin/code/haskell/aura"
# Files to copy from the current Aura source
news=("$aura/rust/target/release/aura"
"$aura/misc/aura.texi"
"$aura/misc/aura.8"
"$aura/misc/completions/bashcompletion.sh"
"$aura/misc/completions/aura.fish"
"$aura/misc/completions/_aura")
# Files to delete before copying
olds=("aura"
"aura.texi"
"aura.8"
"bashcompletion.sh"
"aura.fish"
"_aura")
# Remove old versions
echo "Removing olds files..."
rm ${olds[@]}
# Remove build/source tarballs
echo "Removing old tarballs..."
rm aura-*
# Sync new versions
echo "Copy new files..."
for n in ${news[@]}; do
cp $n $path
done
# Create x86_64 tarball
tar -czf aura-$1-x86_64.tar.gz ${olds[@]}
makepkg -g
makepkg --printsrcinfo >.SRCINFO
echo "Done."
|