Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 3f8d496413
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (37 sloc) 1.014 kB
# InputHistory
#
# Douglas Thrift
#
# GNUmakefile
ifeq ($(OS),Windows_NT)
SED := C:\cygwin\bin\sed.exe
ZIP := C:\cygwin\bin\zip.exe
PROFILE := $(subst /,\,$(firstword $(wildcard $(APPDATA)/Instantbird/Profiles/*.default)))
RM_F := del /F /A
else
SED := sed
ZIP := zip
PROFILE := $(firstword $(wildcard ~/.instantbird/*.default))
RM_F := rm -f
endif
files := install.rdf bootstrap.js
id := $(firstword $(shell $(SED) -re "s|^.*<em:id>(.+)</em:id>.*$$|\1|p;d" install.rdf))
version := $(shell $(SED) -re "s|^.*<em:version>(.+)</em:version>.*$$|\1|p;d" install.rdf)
xpi := $(shell echo $(id) | $(SED) -re "s/^(.+)@.*$$/\1/")-$(version).xpi
shortcut := $(PROFILE)/extensions/$(id)
cwd := $(CURDIR)/
ifeq ($(OS),Windows_NT)
shortcut := $(subst /,\,$(shortcut))
cwd := $(subst /,\,$(cwd))
endif
.PHONY: all install deinstall uninstall clean
all: $(xpi)
$(xpi): $(files)
$(ZIP) -ll $(xpi) $(files)
install:
echo $(cwd)> $(shortcut)
deinstall:
-$(RM_F) $(shortcut)
uninstall: deinstall
clean:
-$(RM_F) *.xpi
Jump to Line
Something went wrong with that request. Please try again.