File: extract-tarballs

package info (click to toggle)
roundcube-plugins-extra 0.7-20120110
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,372 kB
  • sloc: php: 10,427; xml: 574; sh: 75; makefile: 53; awk: 51
file content (20 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

. debian/scripts/plugin-functions.sh

if [ "$#" -ge 1 ]; then
	PLUGINS="$@"
else
	PLUGINS="$(get_plugins)"
fi

PREFIX="../$(get_orig_prefix)"
for plugin in $PLUGINS; do
	DIR="$(get_plugin_dir "$plugin")"
	mkdir -p "$DIR"
	get_plugin_field "$plugin" 'Exclude-patterns' 2>/dev/null |
		tar --exclude-from=- -C "$DIR" --strip-components=1 \
			-zxf "$PREFIX-$DIR.tar.gz"
done