Add install instructions for icons and .desktop file

parent 435f6ec0
......@@ -51,6 +51,25 @@ SOURCES = 64bit.fs base64.fs base85.fs crypto-api.fs debugging.fs \
json/test.json json/diaspora-schema.fs html/parser.fs xml/parser.fs \
xml/blogger-atom.fs
ICONS = icons/hicolor/128x128/apps/net2o.png \
icons/hicolor/16x16/apps/net2o.png \
icons/hicolor/192x192/apps/net2o.png \
icons/hicolor/22x22/apps/net2o.png icons/hicolor/24x24/apps/net2o.png \
icons/hicolor/256x256/apps/net2o.png \
icons/hicolor/32x32/apps/net2o.png icons/hicolor/36x36/apps/net2o.png \
icons/hicolor/48x48/apps/net2o.png icons/hicolor/64x64/apps/net2o.png \
icons/hicolor/72x72/apps/net2o.png \
icons/hicolor/scalable/apps/net2o.svg
ICONDIRS = icons/hicolor/128x128/apps/ icons/hicolor/16x16/apps/ \
icons/hicolor/192x192/apps/ icons/hicolor/22x22/apps/ \
icons/hicolor/24x24/apps/ icons/hicolor/256x256/apps/ \
icons/hicolor/32x32/apps/ icons/hicolor/36x36/apps/ \
icons/hicolor/48x48/apps/ icons/hicolor/64x64/apps/ \
icons/hicolor/72x72/apps/ icons/hicolor/scalable/apps/
DESKTOP = applications/net2o.desktop
DESKTOPDIR = applications
LANGS = lang/en lang/de lang/zh
ifeq "$(FAST)" "yes"
......@@ -143,6 +162,12 @@ install: libcc-install
@NOVERDIR@for i in $(SCRIPTS); do \
@NOVERDIR@ $(INSTALL_SCRIPT) ./$$i $(bindir)/$$i; \
@NOVERDIR@done
for i in $(ICONDIRS) $(DESKTOPDIR); do \
$(MKDIR) -p $(datadir)/$$i; \
done
for i in $(ICONS) $(DESKTOP); do \
$(INSTALL_DATA) ./$$i $(datadir)/$$i; \
done
%.dirui:
$(RMDIR) $(datadir)/gforth/$(GFVER)/$(@:%.dirui=%); \
......
......@@ -27,6 +27,8 @@ override_dh_auto_install:
mv $(DL)/usr/share/gforth/$(GFORTH_VER)/net2o-$(NET2O_VER)/tests $(DT)/usr/share/gforth/$(GFORTH_VER)/net2o-$(NET2O_VER)/
mv $(DL)/usr/share/gforth $(D)/usr/share/
mv $(D)/usr/share/gforth/$(GFORTH_VER)/net2o-$(NET2O_VER)/{gui*.fs,qrscan.fs,doc} $(DG)/usr/share/gforth/$(GFORTH_VER)/net2o-$(NET2O_VER)/
mv $(D)/usr/share/icons $(DG)/usr/share
mv $(D)/usr/share/applications $(DG)/usr/share
mv $(DL)/usr/bin $(D)/usr/
override_dh_installchangelogs:
......
......@@ -100,7 +100,7 @@ $Variable init-rng$
['] c:diffuse rng-exec fd close-file throw ;
: write-initrng ( -- )
init-rng$ $@ dirname $1FF init-dir drop
init-rng$ $@ dirname '/' -skip $1FF init-dir drop
init-rng$ $@ r/w create-file throw >r
rng-buffer c:key# r@ write-file throw
r> close-file throw rng-step ;
......@@ -135,7 +135,7 @@ $10 cells buffer: rngstat-buf
check-rng$ $@ w/o open-file throw >r
r@ file-size throw r@ reposition-file throw
ELSE
check-rng$ $@ dirname $1FF init-dir drop
check-rng$ $@ dirname '/' -skip $1FF init-dir drop
check-rng$ $@ w/o create-file throw >r
THEN
2dup check-old$ $+!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment