diff options
Diffstat (limited to 'graphics/mgp-gallery/scripts/fix-gallery')
-rw-r--r-- | graphics/mgp-gallery/scripts/fix-gallery | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/mgp-gallery/scripts/fix-gallery b/graphics/mgp-gallery/scripts/fix-gallery new file mode 100644 index 000000000000..1286c1b92855 --- /dev/null +++ b/graphics/mgp-gallery/scripts/fix-gallery @@ -0,0 +1,11 @@ +#!/bin/sh +INSTALL="$1" +TARGETDIR="$2" +shift 2 +while test $# -gt 0; do + input=$1 + shift + sed -e "1d" -e "/^%nodefault/q" <$input >.$input + $INSTALL .$input $TARGETDIR/$input + rm -f .$input +done |