1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-03 20:34:14 +01:00
Files
wmaker/debian/wmaker.postinst
Doug Torrance 54a24ab6f7 Remove trailing whitespace.
Also, the script is a one-liner, stolen from [1]:

ack --print0 -l '[ \t]+$' | xargs -0 -n1 perl -pi -e 's/[ \t]+$//'

[1]
https://stackoverflow.com/questions/149057/how-to-remove-trailing-whitespace-of-all-files-recursively
2020-04-09 14:28:09 +01:00

15 lines
385 B
Bash

#!/bin/sh
set -e
#DEBHELPER#
# run after debhelper code, which removes menu-methods.
if [ "$1" = "configure" ] &&
[ x"$2" != "x" ] &&
test -e /etc/GNUstep/Defaults/menu.hook &&
dpkg --compare-versions "$2" '<<' '0.95.8-2~' ; then
if head -n1 /etc/GNUstep/Defaults/menu.hook |
grep -q 'Automatically generated file. Do not edit' ; then
rm /etc/GNUstep/Defaults/menu.hook
fi
fi