about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/xfce4-14/automakeAddFlags.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/desktops/xfce4-14/automakeAddFlags.sh')
-rw-r--r--nixpkgs/pkgs/desktops/xfce4-14/automakeAddFlags.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/desktops/xfce4-14/automakeAddFlags.sh b/nixpkgs/pkgs/desktops/xfce4-14/automakeAddFlags.sh
new file mode 100644
index 000000000000..92d5659d05ca
--- /dev/null
+++ b/nixpkgs/pkgs/desktops/xfce4-14/automakeAddFlags.sh
@@ -0,0 +1,7 @@
+automakeAddFlags() {
+    local file="$1"
+    local target="$2"
+    local source="$3"
+
+    sed "/$target/a\$($source) \\\\" -i $file
+}