tAdd 'dist' to makefile; update changelog - croptool - Image cropping tool
HTML git clone git://lumidify.org/croptool.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 15dc7cce5fedb1f038f52de2647aec4de7f48512
DIR parent de33336bdf4a91940a960149135a220fdd28ed20
HTML Author: lumidify <nobody@lumidify.org>
Date: Sun, 3 Jan 2021 11:29:39 +0100
Add 'dist' to makefile; update changelog
Diffstat:
M CHANGELOG | 5 +++++
M Makefile | 10 +++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
DIR diff --git a/CHANGELOG b/CHANGELOG
t@@ -1,3 +1,8 @@
+1.1 -> 1.2-dev
+* Rewrite using Xlib and Imlib2
+* Add command-line options and man pages
+* Add automatic resizing of image when resizing window
+
1.0 -> 1.1
* Allow two different selection box colors
* Immediately display the first image when croptool is started
DIR diff --git a/Makefile b/Makefile
t@@ -7,6 +7,7 @@ PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man
BIN = ${NAME} croptool_crop
+SRC = ${BIN:=.c}
MAN1 = ${BIN:=.1}
CFLAGS += -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11` `imlib2-config --cflags`
t@@ -32,4 +33,11 @@ uninstall:
clean:
rm -f ${BIN}
-.PHONY: all clean install uninstall
+dist:
+ rm -rf "${NAME}-${VERSION}"
+ mkdir -p "${NAME}-${VERSION}"
+ cp -f ${MAN1} ${SRC} Makefile "${NAME}-${VERSION}"
+ tar cf - "${NAME}-${VERSION}" | gzip -c > "${NAME}-${VERSION}.tar.gz"
+ rm -rf "${NAME}-${VERSION}"
+
+.PHONY: all clean install uninstall dist