summarylogtreecommitdiffstats
path: root/pre-commit
blob: 99c3f9f8fa92ed22616ed08fe1da24154c5b9c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e

# update SRCINFO before committing
if [ "$(git config --bool aur.hook.srcinfo)" != "false" ]; then

  echo "aur.hook.srcinfo: updating .SRCINFO ..."
  makepkg --printsrcinfo > .SRCINFO
  git add .SRCINFO


fi

# update SRCINFO before committing
if [ "$(git config --bool aur.hook.clean)" != "false" ]; then
  echo "Cleaning directories"
  rm -rf pkg
  rm -rf src
  rm -f RemoteDesktopManager_2022*
  rm -f RemoteDesktopManager_2023*
  rm -f remote-desktop-manager-2022*
  rm -f remote-desktop-manager-2023*
fi