summaryrefslogtreecommitdiff
path: root/libre/linux-libre/linux-libre_kernels_aur_version.sh
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-07-07 23:09:42 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-07-07 23:09:42 -0300
commit00f0f56ced73fe180fab76bd53d86f0ee8b7e60e (patch)
tree8c9802711ef532998c18aade27bfa6ae342dfa7e /libre/linux-libre/linux-libre_kernels_aur_version.sh
parent3417648be2b48c1c5f86417dd789ee1cb64bab45 (diff)
linux-libre: add script to remove the conflicts=(linux) from the Linux-libre kernels posted to AUR to avoid making it hard for Arch users to try it out
Diffstat (limited to 'libre/linux-libre/linux-libre_kernels_aur_version.sh')
-rwxr-xr-xlibre/linux-libre/linux-libre_kernels_aur_version.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/libre/linux-libre/linux-libre_kernels_aur_version.sh b/libre/linux-libre/linux-libre_kernels_aur_version.sh
new file mode 100755
index 000000000..0c992ba40
--- /dev/null
+++ b/libre/linux-libre/linux-libre_kernels_aur_version.sh
@@ -0,0 +1,27 @@
+#!/usr/bin/bash
+
+# Copyright (C) 2015 André Silva <emulatorman@parabola.nu>
+# Copyright (C) 2015 Márcio Silva <coadde@parabola.nu>
+#
+# License: GNU GPLv3+
+#
+# This file is part of Parabola.
+#
+# Parabola is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Parabola is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Parabola. If not, see <http://www.gnu.org/licenses/>.
+
+for kernel in libre/linux-libre{,-lts,-grsec} kernels/linux-libre-{knock,grsec-knock,pae,xen,lts-{grsec,knock,grsec-knock}}; do
+ cd ~/packages/abslibre/$kernel
+ sed -i '\|conflicts=| s|"${_replacesarchkernel\[@][/%a-z-]*}" ||' $(grep -rlI 'conflicts')
+ cd ~/packages/abslibre
+done