diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-06-07 10:26:12 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-06-21 04:06:28 +0200 |
commit | 7f7c96c7c3ced441c59f4791ecc145a35dbd7286 (patch) | |
tree | db244001928d2827db680761000b927c058397a7 | |
parent | b943cfe2afbd593e814de47b2f13f8b3b1af78da (diff) | |
download | nx-libs-7f7c96c7c3ced441c59f4791ecc145a35dbd7286.tar.gz nx-libs-7f7c96c7c3ced441c59f4791ecc145a35dbd7286.tar.bz2 nx-libs-7f7c96c7c3ced441c59f4791ecc145a35dbd7286.zip |
Copy x-indent.sh and x-indent-all.sh from xorg/util/modular.
-rwxr-xr-x | nx-X11/x-indent-all.sh | 4 | ||||
-rwxr-xr-x | nx-X11/x-indent.sh | 29 |
2 files changed, 33 insertions, 0 deletions
diff --git a/nx-X11/x-indent-all.sh b/nx-X11/x-indent-all.sh new file mode 100755 index 000000000..6addaf400 --- /dev/null +++ b/nx-X11/x-indent-all.sh @@ -0,0 +1,4 @@ +#!/bin/sh +where=`dirname $0` +git ls-files | grep '\.[chm]$' | xargs sh "$where"/x-indent.sh + diff --git a/nx-X11/x-indent.sh b/nx-X11/x-indent.sh new file mode 100755 index 000000000..e662cce09 --- /dev/null +++ b/nx-X11/x-indent.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# We want GNU indent, so first search for gindent to avoid /usr/bin/indent +# on the BSDs, which won't work for us +INDENT=`which gnuindent || which gindent || which indent` + +if [ -z "${INDENT}" ] ; then + echo "Could not find indent, sorry..." >&2 + exit 1 +fi + +$INDENT -linux -bad -bap -blf -bli0 -cbi0 -cdw -nce -cs -i4 -lc80 -psl -nbbo \ + -nbc -psl -nbfda -nut -nss -T pointer -T ScreenPtr -T ScrnInfoPtr -T pointer \ + -T DeviceIntPtr -T DevicePtr -T ClientPtr -T CallbackListPtr \ + -T CallbackProcPtr -T OsTimerPtr -T CARD32 -T CARD16 -T CARD8 \ + -T INT32 -T INT16 -T INT8 -T Atom -T Time -T WindowPtr -T DrawablePtr \ + -T PixmapPtr -T ColormapPtr -T CursorPtr -T Font -T XID -T Mask \ + -T BlockHandlerProcPtr -T WakeupHandlerProcPtr -T RegionPtr \ + -T InternalEvent -T GrabPtr -T Timestamp -T Bool -T TimeStamp \ + -T xEvent -T DeviceEvent -T RawDeviceEvent -T GrabMask -T Window \ + -T Drawable -T FontPtr -T CallbackPtr -T XIPropertyValuePtr \ + -T GrabParameters -T deviceKeyButtonPointer -T TouchOwnershipEvent \ + -T xGenericEvent -T DeviceChangedEvent -T GCPtr -T BITS32 \ + -T xRectangle -T BoxPtr -T RegionRec -T ValuatorMask -T KeyCode \ + -T KeySymsPtr -T XkbDescPtr -T InputOption -T XI2Mask -T DevUnion \ + -T DevPrivateKey -T DevScreenPrivateKey -T PropertyPtr -T RESTYPE \ + -T XkbAction -T XkbChangesPtr -T XkbControlsPtr -T PrivatePtr -T pmWait \ + -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT "$@" + |