[Github-comments] [geany-plugins] Add shell script to add plugin dependencies into GTK bundle on MSYS2 (#375)

Enrico Tröger notifications at xxxxx
Sat Mar 12 16:19:50 UTC 2016


> +		if [ -f .INSTALL ]; then
> +			echo "Running post_install script for \"$i\""
> +			/bin/bash -c ". .INSTALL; post_install"
> +		fi
> +		rm -f .INSTALL .MTREE .PKGINFO .BUILDINFO
> +	done
> +}
> +
> +move_extracted_files() {
> +	echo "Move extracted data to destination directory"
> +	if [ -d mingw32 ]; then
> +		for d in bin etc home include lib libexec locale sbin share ssl var; do
> +			if [ -d "mingw32/$d" ]; then
> +				rm -rf $d
> +				# prevent sporadic 'permission denied' errors on my system, not sure why they happen
> +				sleep 0.5

As discussed on IRC, it *does* delete only $d which is intended here because mingw32/$d is moved to $d afterwards.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/375/files#r55923361
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160312/67f83987/attachment.html>


More information about the Github-comments mailing list