lilac/repo/linux-bcachefs-git/lilac.py

14 lines
396 B
Python
Raw Normal View History

2023-08-23 14:07:14 +00:00
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
aur_pre_build()
for line in edit_file('PKGBUILD'):
2023-08-23 14:58:20 +00:00
if line.startswith('_subarch='):
line = '_subarch=40'
2023-08-23 14:07:14 +00:00
if line.startswith('prepare() {'):
line = line + '\n git config --global user.email "lilac@noreply.bgme.me"\n git config --global user.name "Lilac"\n'
print(line)