From 084d0a37c8d0f1a991ce22ccc6d8c3dd8ca12a33 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 26 Dec 2012 22:14:47 -0500 Subject: (scripted) fix file permission breakage introduced in commit d62bd1 I did this with this command: git diff d62bd1^..d62bd1 | egrep '^old mode ' -C1 \ | tr '\n' ' ' | sed 's/diff --git/\n&/g' \ | sed -r 's|^diff --git a/([^ ]*) b/([^ ]*) old mode 100([0-9]*) new mode 100([0-9]*)|chmod \3 ./\1|' \ | bash The first line finds all of the file-permission changes in the commit. The second line squashes some newlines to get one line per file. This line is in the format: diff --git a/FILE b/FILE old mode OLDMODE new mode NEWMODE The third line extracts the values from those lines and transforms the line into: chmod FILE ./OLDMODE The fourth line (obviously) just executes the output. --- libre/lirc-libre/PKGBUILD | 0 libre/lirc-libre/irexec.conf | 0 libre/lirc-libre/irexecd | 0 libre/lirc-libre/kernel-2.6.39.patch | 0 libre/lirc-libre/lirc.install | 0 libre/lirc-libre/lirc.logrotate | 0 libre/lirc-libre/lirc_atiusb-kfifo.patch | 0 libre/lirc-libre/lirc_wpc8769l.patch | 0 libre/lirc-libre/lircd | 0 libre/lirc-libre/lircd-handle-large-config.patch | 0 libre/lirc-libre/lircd.conf | 0 libre/lirc-libre/lircmd | 0 12 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 libre/lirc-libre/PKGBUILD mode change 100755 => 100644 libre/lirc-libre/irexec.conf mode change 100755 => 100644 libre/lirc-libre/irexecd mode change 100755 => 100644 libre/lirc-libre/kernel-2.6.39.patch mode change 100755 => 100644 libre/lirc-libre/lirc.install mode change 100755 => 100644 libre/lirc-libre/lirc.logrotate mode change 100755 => 100644 libre/lirc-libre/lirc_atiusb-kfifo.patch mode change 100755 => 100644 libre/lirc-libre/lirc_wpc8769l.patch mode change 100755 => 100644 libre/lirc-libre/lircd mode change 100755 => 100644 libre/lirc-libre/lircd-handle-large-config.patch mode change 100755 => 100644 libre/lirc-libre/lircd.conf mode change 100755 => 100644 libre/lirc-libre/lircmd (limited to 'libre/lirc-libre') diff --git a/libre/lirc-libre/PKGBUILD b/libre/lirc-libre/PKGBUILD old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/irexec.conf b/libre/lirc-libre/irexec.conf old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/irexecd b/libre/lirc-libre/irexecd old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/kernel-2.6.39.patch b/libre/lirc-libre/kernel-2.6.39.patch old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lirc.install b/libre/lirc-libre/lirc.install old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lirc.logrotate b/libre/lirc-libre/lirc.logrotate old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lirc_atiusb-kfifo.patch b/libre/lirc-libre/lirc_atiusb-kfifo.patch old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lirc_wpc8769l.patch b/libre/lirc-libre/lirc_wpc8769l.patch old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lircd b/libre/lirc-libre/lircd old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lircd-handle-large-config.patch b/libre/lirc-libre/lircd-handle-large-config.patch old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lircd.conf b/libre/lirc-libre/lircd.conf old mode 100755 new mode 100644 diff --git a/libre/lirc-libre/lircmd b/libre/lirc-libre/lircmd old mode 100755 new mode 100644 -- cgit v1.2.3