Commit 5f4631ba authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added rule for creation of distribution of server.

parent e98b6063
......@@ -4,6 +4,7 @@ SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
SUBDIRS = doc junk scripts src
all: includes libraries binaries
......@@ -56,3 +57,20 @@ clean:
echo making clean in directory $$i; \
(cd $$i; $(MAKE) $(EXPORTS) clean) \
distribution: clean
-$(RM) -r lyskom-$(SERVER-VER)
mkdir lyskom-$(SERVER-VER)
cp -r doc lyskom-$(SERVER-VER)/doc
cp -r scripts lyskom-$(SERVER-VER)/scripts
mkdir lyskom-$(SERVER-VER)/src
mkdir lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libansi lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libcommon lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libisc lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libmisc lyskom-$(SERVER-VER)/src/libraries
cp -r src/server lyskom-$(SERVER-VER)/src
find lyskom-$(SERVER-VER) -name CVS.adm -print -exec rm -rf {} \; -prune
tar cvf lyskom-$(SERVER-VER).tar lyskom-$(SERVER-VER).tar
compress lyskom-$(SERVER-VER).tar
$(RM) -r lyskom-$(SERVER-VER)
Supports Markdown
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