mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-16 17:55:46 +01:00
Fix 'make install' on Cygwin and make_jar.sh on Cygwin and BSD-ish systems. Closes issue #43.
This commit is contained in:
@@ -111,7 +111,10 @@ install:
|
||||
profile=$$(sed 's/^$$/\#/' "$$dir/profiles.ini" |\
|
||||
awk -v"profile=$(PROFILE)" \
|
||||
'BEGIN { RS="#" } \
|
||||
index($$0, "\nName=" profile "\n") || !profile && /\nDefault=1/' |\
|
||||
index($$0, "\nName=" profile "\n") { print; exit } \
|
||||
!profile && /\nName=default\n/ { args["name=default"] = $$0 } \
|
||||
!profile && /\nDefault=1/ { args["default=1"] = $$0 } \
|
||||
END { if (args["default=1"]) print args["default=1"]; else print args["name=default"] }' |\
|
||||
awk -F= '{ args[$$1] = $$2 } \
|
||||
END {\
|
||||
if (args["IsRelative"]) print ENVIRON["dir"] "/" args["Path"];\
|
||||
@@ -125,7 +128,10 @@ install:
|
||||
rm -f "$$ext.xpi"; \
|
||||
rm -rf "$$ext"; \
|
||||
echo "Installing to $$ext"; \
|
||||
pwd >"$$ext"
|
||||
if which cygpath >/dev/null 2>&1; \
|
||||
then cygpath -wa .; \
|
||||
else pwd; \
|
||||
fi >"$$ext"
|
||||
installxpi: xpi
|
||||
$(FIREFOX) $(XPI)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user