File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 5656donotcommit
5757echttp_get
5858echttp_print
59+ httpserver
5960
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ LDCONFIG=/usr/sbin/ldconfig
3333PACKAGE =build/echttp
3434
3535HMAN =/var/lib/house/note/content/manuals/infrastructure
36+ HMANCACHE =/var/lib/house/note/cache
3637
3738OBJS = echttp.o \
3839 echttp_static.o \
7677install : dev
7778 $(INSTALL ) -m 0755 -d $(DESTDIR )$(HMAN )
7879 $(INSTALL ) -m 0644 README.md $(DESTDIR )$(HMAN ) /echttp.md
80+ rm -rf $(DESTDIR )$(HMANCACHE ) /*
7981
8082clean :
8183 rm -f * .o * .a * .so
@@ -96,8 +98,9 @@ debian-package:
9698 rm -rf build
9799 mkdir -p $(PACKAGE ) /DEBIAN
98100 sed " s/{{arch}}/` dpkg --print-architecture` /" < debian/control > $(PACKAGE ) /DEBIAN/control
99- cp debian/copyright $(PACKAGE ) /DEBIAN
100- cp debian/changelog $(PACKAGE ) /DEBIAN
101+ $(INSTALL ) -m 644 debian/copyright $(PACKAGE ) /DEBIAN
102+ $(INSTALL ) -m 644 debian/changelog $(PACKAGE ) /DEBIAN
103+ $(INSTALL ) -m 755 debian/postinst $(PACKAGE ) /DEBIAN
101104 make DESTDIR=$(PACKAGE ) install
102105 cd build ; fakeroot dpkg-deb -b echttp .
103106
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ case $1 in
4+ configure|abort-upgrade|abort-deconfigure|abort-remove)
5+ if [ -d /var/lib/house/note/cache ] ; then rm -rf /var/lib/house/note/cache/* ; fi
6+ ;;
7+ esac
8+
You can’t perform that action at this time.
0 commit comments