summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-08-27 21:25:01 +0100
committerNick White <git@njw.me.uk>2012-08-27 21:25:01 +0100
commitc36bc927de948003f8fd3aea8a3cfa68f7e4ead2 (patch)
treea5907f1e5ab8e6142696b20ce170182035b531da
parent6c92fe052989d78fd43a6e46f1a4b80a64f61d8c (diff)
Improve layout of zip file for windows people
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 97ccabb..0bdeb47 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ dist-static: $(BIN)
getxbookgui.exe: getxbookgui.tcl
@echo STARPACK $@
- @sed 's/\/icons/\/..\/icons/' < getxbookgui.tcl > getxbookgui-win.tcl
+ @sed 's/\/icons/\/..\/icons/;s/set cmd "/set cmd "tools\//' < getxbookgui.tcl > getxbookgui-win.tcl
@sdx qwrap getxbookgui-win.tcl getxbookgui
@sdx unwrap getxbookgui.kit
@cp -f getxbook.ico getxbookgui.vfs/tclkit.ico
@@ -87,16 +87,17 @@ getxbookgui.exe: getxbookgui.tcl
# needs config.mk set up to use mingw
dist-win: $(BIN) $(GUI:.tcl=.exe)
- mkdir -p $(NAME)-win
+ mkdir -p $(NAME)-win/tools
cp $(GUI:.tcl=.exe) $(NAME)-win
- for f in $(BIN); do cp $$f $(NAME)-win/$$f.exe; done
+ for f in $(BIN); do cp $$f $(NAME)-win/tools/$$f.exe; done
mkdir -p $(NAME)-win/icons
cp icons/* $(NAME)-win/icons/
for f in LEGAL README COPYING; do \
sed 's/$$/\r/g' < $$f > $(NAME)-win/$$f.txt; done
for f in *1; do \
b=`basename $$f .1`; \
- groff -m man -T utf8 < $$f | col -bx | sed 's/$$/\r/g' > $(NAME)-win/$$b.txt; done
+ groff -m man -T utf8 < $$f | col -bx | sed 's/$$/\r/g' > $(NAME)-win/tools/$$b.txt; done
+ mv $(NAME)-win/tools/getxbookgui.txt $(NAME)-win/
cd $(NAME)-win; zip -r ../$(NAME)-$(VERSION)-win.zip .;cd ..
gpg -b < $(NAME)-$(VERSION)-win.zip > $(NAME)-$(VERSION)-win.zip.sig
rm -rf $(NAME)-win