1050361999-04-14Henrik Grubbström (Grubba) #
7cc4fe1999-06-11Martin Stjernholm # $Id: Makefile.in,v 1.97 1999/06/11 06:37:19 mast Exp $
1050361999-04-14Henrik Grubbström (Grubba) #
b1fca01996-11-12Per Hedbor # @configure_input@ SRCDIR=@srcdir@ VPATH=@srcdir@ prefix=@prefix@
9345f51997-04-09Henrik Grubbström (Grubba) @SET_MAKE@
cdda7d1997-08-20Henrik Grubbström (Grubba) INSTALL=@INSTALL@
1050361999-04-14Henrik Grubbström (Grubba) AR=@AR@
f740261997-10-05Henrik Grubbström (Grubba) CC=@CC@
ede98d1997-10-30Henrik Grubbström (Grubba) CPPFLAGS=@CPPFLAGS@
286c531997-11-06Henrik Grubbström (Grubba) CFLAGS=@REALCFLAGS@ JOINEDCFLAGS=@CFLAGS@
a1dc3c1998-07-05Henrik Grubbström (Grubba) LDFLAGS=@LDFLAGS@
f740261997-10-05Henrik Grubbström (Grubba) 
0349ac1998-02-28Henrik Grubbström (Grubba) PIKEVERSION=@PIKEVERSION@
a982b51999-02-05Henrik Grubbström (Grubba) # Used to avoid make compatibility problems. BIN_TRUE=":"
4b766a1997-08-18Henrik Grubbström (Grubba) 
29c2071999-05-07Martin Stjernholm all: @MAKE_GMP@ @MAKE_GDBM@ @MAKE_ZLIB@ pike extern tools
a982b51999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
a61e851999-01-12Henrik Grubbström (Grubba) 
4b766a1997-08-18Henrik Grubbström (Grubba) pike: force
7cc4fe1999-06-11Martin Stjernholm  @test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS) @LINKFORSHARED@"; \ )
4b766a1997-08-18Henrik Grubbström (Grubba) 
ede98d1997-10-30Henrik Grubbström (Grubba) extern: force
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" all)
34a0a61997-08-18Henrik Grubbström (Grubba) 
29c2071999-05-07Martin Stjernholm tools: force @(cd tools;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" all)
4b766a1997-08-18Henrik Grubbström (Grubba) gmp: force
1050361999-04-14Henrik Grubbström (Grubba)  -@(cd gmp;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" "AR=$(AR)" all)
4b766a1997-08-18Henrik Grubbström (Grubba)  gdbm: force
138eb41997-10-11Henrik Grubbström (Grubba)  -@(cd gdbm;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" all)
4b766a1997-08-18Henrik Grubbström (Grubba)  zlib: force
138eb41997-10-11Henrik Grubbström (Grubba)  -@(cd zlib;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" libz.a)
4b766a1997-08-18Henrik Grubbström (Grubba)  force:
a982b51999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
4b766a1997-08-18Henrik Grubbström (Grubba) 
34a0a61997-08-18Henrik Grubbström (Grubba) # These are here for compatibility with the easy-start makefile easy: all
a982b51999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
34a0a61997-08-18Henrik Grubbström (Grubba) hard: all
a982b51999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
b1fca01996-11-12Per Hedbor 
446c141997-04-27Henrik Grubbström (Grubba) depend:
7cc4fe1999-06-11Martin Stjernholm  -@test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" depend; \ )
446c141997-04-27Henrik Grubbström (Grubba) 
1b1efc1997-08-18Henrik Grubbström (Grubba) verify: all verify_other
7cc4fe1999-06-11Martin Stjernholm  @test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify; \ )
446c141997-04-27Henrik Grubbström (Grubba) 
1b1efc1997-08-18Henrik Grubbström (Grubba) verbose_verify: all verify_other
7cc4fe1999-06-11Martin Stjernholm  @test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verbose_verify; \ )
446c141997-04-27Henrik Grubbström (Grubba) 
a5d3fa1998-05-08Henrik Grubbström (Grubba) verify_other: verify_extern
1b1efc1997-08-18Henrik Grubbström (Grubba)  @if test "@MAKE_ZLIB@" = "zlib"; then \
138eb41997-10-11Henrik Grubbström (Grubba)  $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify_zlib; \
1b1efc1997-08-18Henrik Grubbström (Grubba)  fi
84ccc11997-10-07Henrik Grubbström (Grubba)  @if test "@MAKE_GMP@" = "gmp"; then \
138eb41997-10-11Henrik Grubbström (Grubba)  $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify_gmp; \
84ccc11997-10-07Henrik Grubbström (Grubba)  fi
1b1efc1997-08-18Henrik Grubbström (Grubba) 
a5d3fa1998-05-08Henrik Grubbström (Grubba) verify_extern: @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify)
1b1efc1997-08-18Henrik Grubbström (Grubba) verify_zlib:
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd zlib;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" test)
1b1efc1997-08-18Henrik Grubbström (Grubba) 
84ccc11997-10-07Henrik Grubbström (Grubba) verify_gmp:
1050361999-04-14Henrik Grubbström (Grubba)  @(cd gmp;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" "AR=$(AR)" check)
84ccc11997-10-07Henrik Grubbström (Grubba) 
09fb2e1997-04-27Henrik Grubbström (Grubba) new_peep_engine:
7cc4fe1999-06-11Martin Stjernholm  @test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" new_peep_engine; \ )
09fb2e1997-04-27Henrik Grubbström (Grubba) 
446c141997-04-27Henrik Grubbström (Grubba) check: verify
a982b51999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
b1fca01996-11-12Per Hedbor  clean:
7cc4fe1999-06-11Martin Stjernholm  @test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" clean; \ )
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" clean)
29c2071999-05-07Martin Stjernholm  @(cd tools;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" clean)
b1fca01996-11-12Per Hedbor 
e948761997-05-07Henrik Grubbström (Grubba) install_all: install_pike install
a982b51999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
e948761997-05-07Henrik Grubbström (Grubba) 
7218e01998-03-13David Hedbor install: all install_only
a982b51999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
7218e01998-03-13David Hedbor  install_only:
b1fca01996-11-12Per Hedbor  $(SRCDIR)/mkdir -p $(prefix)/roxen/
1901aa1998-07-09Henrik Grubbström (Grubba)  @for f in `cd $(SRCDIR); ls [A-Z]* | grep -v Makefile`; do \
dbb4c61998-09-16Peter Bortas  if test -f $(SRCDIR)/$$f ; then \ cp $(SRCDIR)/$$f $(prefix)/roxen/; \
1901aa1998-07-09Henrik Grubbström (Grubba)  else :; fi; \ done
7931161997-10-12Henrik Grubbström (Grubba)  @if test -d $(prefix)/roxen/server.old/.; then \
5f32d31997-05-16Henrik Grubbström (Grubba)  if test -d $(prefix)/roxen/server.older/.; then \
5773711997-05-20Henrik Grubbström (Grubba)  echo; \ echo "Warning, deleting old server \"$(prefix)/roxen/server.older\""; \ echo; \ rm -rf $(prefix)/roxen/server.older; \
5f32d31997-05-16Henrik Grubbström (Grubba)  fi; \
5773711997-05-20Henrik Grubbström (Grubba)  mv -f $(prefix)/roxen/server.old $(prefix)/roxen/server.older; \
5f32d31997-05-16Henrik Grubbström (Grubba)  fi
7931161997-10-12Henrik Grubbström (Grubba)  @if test -d $(prefix)/roxen/server/.; then \ mv -f $(prefix)/roxen/server $(prefix)/roxen/server.old ; \ fi
b1fca01996-11-12Per Hedbor  cp -r $(SRCDIR)/server $(prefix)/roxen/
6189e71999-03-28Henrik Grubbström (Grubba)  @if test -f $(prefix)/roxen/server.old/etc/environment ; then \ cp $(prefix)/roxen/server.old/etc/environment $(prefix)/roxen/server/etc/environment; \ else :; fi
b1fca01996-11-12Per Hedbor  @rm -rf $(prefix)/roxen/server/CVS $(prefix)/roxen/server/*/CVS\ $(prefix)/roxen/server/*/*/CVS
7cc4fe1999-06-11Martin Stjernholm  test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src || exit 1; \ $(MAKE) "prefix=$(prefix)/roxen/server" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" install; \ rm -f $(prefix)/roxen/server/bin/pike; \ ln $(prefix)/roxen/server/pike/$(PIKEVERSION).*/bin/pike $(prefix)/roxen/server/bin/pike || exit 1; \ rm -f $(prefix)/roxen/server/bin/roxen >/dev/null 2>&1; \ ln $(prefix)/roxen/server/bin/pike $(prefix)/roxen/server/bin/roxen; \ )
138eb41997-10-11Henrik Grubbström (Grubba)  -@(cd extern;$(MAKE) install "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)";cd ../)
29c2071999-05-07Martin Stjernholm  -@(cd tools;$(MAKE) install "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)";cd ../)
ef89571996-12-06Per Hedbor  -@$(SRCDIR)/mkdir -p $(prefix)/roxen/logs -@$(SRCDIR)/mkdir -p $(prefix)/roxen/configurations
16c11e1998-07-11Henrik Grubbström (Grubba)  -chmod a+rx $(prefix) -chmod a+rx $(prefix)/roxen -chmod a+rx $(prefix)/roxen/server
a552541997-06-13Henrik Grubbström (Grubba)  -@for d in fonts nfonts modules etc bin base_server more_modules \
9e98a11997-08-14Henrik Grubbström (Grubba)  config_actions server_templates \
d3c1b21997-06-13Henrik Grubbström (Grubba)  languages roxen-images protocols unfinishedmodules; do \
c490971997-06-04Henrik Grubbström (Grubba)  echo Modifying permissions for directory $(prefix)/roxen/server/$$d... ; \ find $(prefix)/roxen/server/$$d -type d -exec chmod a+x '{}' \; ; \ chmod -R a+r $(prefix)/roxen/server/$$d ;\ done
fb18b21998-01-07Henrik Grubbström (Grubba)  -@for f in BUGS CHANGES CONTRIBUTORS COPYING GPL INSTALLING \ README README.ssl3 TODO; do \
dbb4c61998-09-16Peter Bortas  if test -f $(SRCDIR)/$$f ; then \ echo Copying $$f...; cp $(SRCDIR)/$$f $(prefix)/roxen/$$f; \
fb18b21998-01-07Henrik Grubbström (Grubba)  else :; fi; \ done
89b0891998-01-07Henrik Grubbström (Grubba)  -@for f in cgi fcgi install.pike pdbi.pike pike roxen roxen_hostname; \ do \ if test -f $(prefix)/roxen/server/bin/$$f ; then \ echo Modifying permissions for file $(prefix)/roxen/server/bin/$$f... ; \ chmod a+rx $(prefix)/roxen/server/bin/$$f; \ else :; fi; \
e2f7ab1998-07-01Henrik Grubbström (Grubba)  done; \ if test -f $(prefix)/bin/pike-roxen ; then :; else \ if test -d $(prefix)/bin/. ; then :; else \ echo "Creating directory $(prefix)/bin"; \ mkdir $(prefix)/bin || exit 1; \ chmod a+rx $(prefix)/bin/.; \ fi; \ echo "Installing $(prefix)/bin/pike-roxen"; \
3765a41998-07-01Henrik Grubbström (Grubba)  sed <$(SRCDIR)/pike-roxen.in -e 's!#prefix#!$(prefix)!' >$(prefix)/bin/pike-roxen || exit 1; \
e2f7ab1998-07-01Henrik Grubbström (Grubba)  chmod a+rx $(prefix)/bin/pike-roxen; \ fi
a699b11998-12-08Henrik Grubbström (Grubba)  @if test -f commercial_modules/Makefile ; then \ echo "Installing supplied commercial modules..."; \ (cd commercial_modules; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" install); \ else :; fi
c490971997-06-04Henrik Grubbström (Grubba)  @echo Roxen installed.
b1fca01996-11-12Per Hedbor 
e948761997-05-07Henrik Grubbström (Grubba) install_pike: all
7cc4fe1999-06-11Martin Stjernholm  @test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" install; \ )
e948761997-05-07Henrik Grubbström (Grubba) 
b1fca01996-11-12Per Hedbor localinstall: all
7cc4fe1999-06-11Martin Stjernholm  test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src || exit 1; \ $(MAKE) "prefix=$(SRCDIR)/server" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" install; \ rm -f $(SRCDIR)/server/bin/pike; \ ln $(SRCDIR)/server/pike/$(PIKEVERSION).*/bin/pike $(SRCDIR)/server/bin/pike || exit 1; \ rm -f $(SRCDIR)/server/bin/roxen >/dev/null 2>&1; \ ln $(SRCDIR)/server/bin/pike $(SRCDIR)/server/bin/roxen; \ )
138eb41997-10-11Henrik Grubbström (Grubba)  (cd extern; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" localinstall)
29c2071999-05-07Martin Stjernholm  (cd tools; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" localinstall)
b1fca01996-11-12Per Hedbor  spotless: clean
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" spotless)
29c2071999-05-07Martin Stjernholm  @(cd tools;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" spotless)
7cc4fe1999-06-11Martin Stjernholm  @test $(PIKEVERSION) = none || ( \ cd pike/$(PIKEVERSION)/src && \ $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" spotless; \ )
0349ac1998-02-28Henrik Grubbström (Grubba)  rm -f server/bin/selfdir server/bin/roxen_hostname pike/$(PIKEVERSION)/src/pike\ pike/$(PIKEVERSION)/src/pike.old server/bin/proxygarb
b1fca01996-11-12Per Hedbor  find . '(' -name '#*#' -o -name '*~' -o -name '.*~' -o -name '*.bak'\ -o -name '.pine-debug*' -o -name '.*.bak' -o -name core -o -name \ config.cache -o -name config.status -o -name config.log -o -name \ "*.a" ')' -print -exec /bin/rm '{}' ';' rm -rf server/logs rm -rf logs distribute: spotless
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" distribute)
29c2071999-05-07Martin Stjernholm  @(cd tools; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" distribute)
2961e21998-03-12Henrik Grubbström (Grubba) 
56846a1998-04-07Henrik Grubbström (Grubba) run_autoconfig:
7cc4fe1999-06-11Martin Stjernholm  @( \ cd $(SRCDIR); \ runauto=`echo pike/*/src/run_autoconfig|tr ' ' '\n'|tail -1`; \ $$runauto . \ )
2961e21998-03-12Henrik Grubbström (Grubba) 
4354ba1998-04-07Henrik Grubbström (Grubba) ./Makefile: $(SRCDIR)/Makefile.in config.status CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status @echo "Run make again" @exit 1
2f95e61998-04-07Henrik Grubbström (Grubba) bump_version.stamp:
b4f0c51998-03-13Henrik Grubbström (Grubba)  @touch bump_version.stamp
2f95e61998-04-07Henrik Grubbström (Grubba)  bump_version: bump_version.stamp
2961e21998-03-12Henrik Grubbström (Grubba)  @if test -f $(SRCDIR)/server/base_server/roxen.pike.new; then \ echo Deleting old $(SRCDIR)/server/base_server/roxen.pike.new...; \ rm $(SRCDIR)/server/base_server/roxen.pike.new || exit 1; \ else : ; fi
b4f0c51998-03-13Henrik Grubbström (Grubba)  @(cd $(SRCDIR); \ echo Updating sources...; \ if cvs -q update -dA|egrep '^[CM?]'; then exit 1; else : ; fi; \ )
c053c11998-05-26Henrik Grubbström (Grubba)  @for d in $(SRCDIR)/pike/0.5 $(SRCDIR)/pike/0.6; do \ if test -f $$d/src/version.c; then \ (cd $$d/; \ echo Bumping Pike version in directory $$d...; \ build=`sed <src/version.c -e'/push_text/s/.* \([0-9]*\).*/\1/p' -ed|head -1`; \ newbuild=`echo $$build 1+p|dc`; \ sed <src/version.c -e"/push_text/s/ $$build/ $$newbuild/" >src/version.c.new; \ checkbuild=`sed <src/version.c.new -e'/push_text/s/.* \([0-9]*\).*/\1/p' -ed|head -1`; \ if test "x$$newbuild" = "x$$checkbuild"; then \ mv -f src/version.c.new src/version.c || exit 1; \ echo "Successfull bump to build $$newbuild."; \ else \ echo "Version bump failed: $$newbuild != $$checkbuild."; \ exit 1; \ fi; \ cvs ci -m "Pike release bumped to $$newbuild by bump_version." src/version.c || exit 1; \
d85d931998-05-26Henrik Grubbström (Grubba)  echo "Tagging Pike in $$d..."; \
2aa5161998-06-01Henrik Grubbström (Grubba)  cvs tag `sed <src/version.c -e '/push_text/s/.*"\(.*\)".*/\1/p' -ed|tr 'A-Z. ' 'a-z__'|head -1`||exit 1; \
c053c11998-05-26Henrik Grubbström (Grubba)  echo Done with $$d.); \ else :; fi; \ done
a460d71999-03-26Henrik Grubbström (Grubba)  @for d in $(SRCDIR)/pike/0.7; do \ if test -f $$d/src/version.h; then \ (cd $$d/; \ echo Bumping Pike version in directory $$d...; \ build=`sed <src/version.h -e'/PIKE_BUILD_VERSION/s/[^0-9]*\([0-9]*\).*/\1/p' -ed|head -1`; \ newbuild=`echo $$build 1+p|dc`; \ sed <src/version.h -e"/PIKE_BUILD_VERSION/s/$$build/$$newbuild/" >src/version.h.new; \ checkbuild=`sed <src/version.h.new -e'/PIKE_BUILD_VERSION/s/[^0-9]*\([0-9]*\).*/\1/p' -ed|head -1`; \ if test "x$$newbuild" = "x$$checkbuild"; then \ mv -f src/version.h.new src/version.h || exit 1; \ echo "Successfull bump to build $$newbuild."; \ else \ echo "Version bump failed: $$newbuild != $$checkbuild."; \ exit 1; \ fi; \ cvs ci -m "Pike release bumped to $$newbuild by bump_version." src/version.h || exit 1; \ echo "Tagging Pike in $$d..."; \ major=`sed <src/version.h -e'/PIKE_MAJOR_VERSION/s/[^0-9]*\([0-9]*\).*/\1/p' -ed|head -1`; \ minor=`sed <src/version.h -e'/PIKE_MINOR_VERSION/s/[^0-9]*\([0-9]*\).*/\1/p' -ed|head -1`; \ cvs tag "pike_v$major.$minor""_release_$newbuild" || exit 1; \ echo Done with $$d.); \ else :; fi; \ done
2961e21998-03-12Henrik Grubbström (Grubba)  @(cd $(SRCDIR)/server/base_server; \
c053c11998-05-26Henrik Grubbström (Grubba)  echo Bumping Roxen version...; \
2961e21998-03-12Henrik Grubbström (Grubba)  build=`sed <roxen.pike -e'/__roxen_build__/s/[^0-9]*//gp' -ed|head -1`; \ newbuild=`echo $$build 1+p|dc`; \
b4f0c51998-03-13Henrik Grubbström (Grubba)  sed <roxen.pike -e"/__roxen_build__/s/$$build/$$newbuild/" >roxen.pike.new; \
1fe5e61998-03-13Henrik Grubbström (Grubba)  checkbuild=`sed <roxen.pike.new -e'/__roxen_build__/s/[^0-9]*//gp' -ed|head -1`; \
2961e21998-03-12Henrik Grubbström (Grubba)  if test "x$$newbuild" = "x$$checkbuild"; then \ mv -f roxen.pike.new roxen.pike || exit 1; \ echo "Successfull bump to build $$newbuild."; \ else \
b4f0c51998-03-13Henrik Grubbström (Grubba)  echo "Version bump failed: $$newbuild != $$checkbuild."; \
2961e21998-03-12Henrik Grubbström (Grubba)  exit 1; \ fi; \ version=`sed <roxen.pike -e'/__roxen_version__/s/[^.0-9]*//gp' -ed|head -1`; \
e262f81998-04-07Henrik Grubbström (Grubba)  cvs ci -m "Version bumped to $$version.$$newbuild by bump_version." roxen.pike || exit 1; \ echo "Roxen $$version.$$newbuild" >../../VERSION; \
6243331998-03-13Henrik Grubbström (Grubba)  cat ../../VERSION; \
2961e21998-03-12Henrik Grubbström (Grubba)  )
1fe5e61998-03-13Henrik Grubbström (Grubba)  @(cd $(SRCDIR); \
6243331998-03-13Henrik Grubbström (Grubba)  echo Tagging...; \
e262f81998-04-07Henrik Grubbström (Grubba)  cvs tag `cat VERSION | tr 'A-Z. ' 'a-z__'`||exit 1; \
2961e21998-03-12Henrik Grubbström (Grubba)  )
b4f0c51998-03-13Henrik Grubbström (Grubba)  @touch bump_version
2961e21998-03-12Henrik Grubbström (Grubba) 
09e6f31998-05-09Henrik Grubbström (Grubba) $(SRCDIR)/ChangeLog.gz:
2057081998-04-07Henrik Grubbström (Grubba)  cd $(SRCDIR); pike tools/make_changelog.pike | gzip -9 > ChangeLog.gz
74defa1998-03-23Per Hedbor 
09e6f31998-05-09Henrik Grubbström (Grubba) $(SRCDIR)/ChangeLog.rxml.gz:
f715321998-06-08Henrik Grubbström (Grubba)  cd $(SRCDIR); pike tools/make_changelog.pike --rxml | gzip -9 > ChangeLog.rxml.gz
74defa1998-03-23Per Hedbor 
ae6c0d1998-06-01Henrik Grubbström (Grubba) force_update: force @rm $(SRCDIR)/ChangeLog.gz $(SRCDIR)/ChangeLog.rxml.gz \
a3118a1998-06-08Henrik Grubbström (Grubba)  $(SRCDIR)/VERSION bump_version bump_version.stamp \ 2>/dev/null || true
ae6c0d1998-06-01Henrik Grubbström (Grubba)  @echo Prepared for version update.
f715321998-06-08Henrik Grubbström (Grubba) pre_dist: bump_version -@$(MAKE) depend -@$(MAKE) run_autoconfig
a1dc3c1998-07-05Henrik Grubbström (Grubba) # @(cd pike; $(MAKE) pre_dist)
2961e21998-03-12Henrik Grubbström (Grubba) 
09e6f31998-05-09Henrik Grubbström (Grubba) dist: $(SRCDIR)/ChangeLog.gz $(SRCDIR)/ChangeLog.rxml.gz
2961e21998-03-12Henrik Grubbström (Grubba)  @if test -f $(SRCDIR)/VERSION; then :; else \ echo 'You need to make pre_dist first!'; \ exit 1; \ fi
2fcfa01998-04-07Henrik Grubbström (Grubba)  @version=`cat $(SRCDIR)/VERSION | tr 'A-Z ' 'a-z_'`; \
5208961998-04-07Henrik Grubbström (Grubba)  if ls -d $$version* >/dev/null 2>&1; then \
2961e21998-03-12Henrik Grubbström (Grubba)  echo Deleting old distributions...; \ rm -rf $$version* || exit 1; \ else :; fi; \ mkdir $$version; \
5208961998-04-07Henrik Grubbström (Grubba)  echo Copying files...; \
2961e21998-03-12Henrik Grubbström (Grubba)  (cd $(SRCDIR); tar cf - .)|(cd $$version; tar xf -; make dist_clean); \
f715321998-06-08Henrik Grubbström (Grubba)  echo Cleaning up the copied sources...; \ for f in `find $$version/. -type f -name '*~' -print` \ `find $$version/. -type f -name '.#*' -print` \ `find $$version/. -type f -name '#*' -print`; do \ echo $$f; rm $$f || exit 1; \ done; \ for d in $$version/pike/0.5/tutorial $$version/pike/0.5/about_pike \
8de10f1998-06-09Henrik Grubbström (Grubba)  $$version/pike/0.6/about_pike $$version/pike/0.6/doc; do \
f715321998-06-08Henrik Grubbström (Grubba)  if test -d $$d/. ; then \ echo Removing $$d...; rm -rf $$d || exit 1; \ else :; fi; \ done; \
8a06211998-07-04Henrik Grubbström (Grubba)  echo "Zapping absolute paths in language.c..."; \ for f in $$version/pike/*/src/language.c; do \
dbb4c61998-09-16Peter Bortas  if test -f "$$f"; then \ echo "Fixing $$f.."; \ sed <"$$f" >"$$f.fix" -e '/^#line/s!/.*/\(language\.yacc\)!\1!' && \ mv "$$f.fix" "$$f"; \
8a06211998-07-04Henrik Grubbström (Grubba)  else :; fi; \ done; \
615cd81998-08-30Henrik Grubbström (Grubba)  echo "Altering some CVS files to point to developer.roxen.com..."; \ for f in `find $$version/ -type d -name CVS -print`; do \
dbb4c61998-09-16Peter Bortas  if egrep '^//*cvs//*roxen_src' "$$f/Repository" 2>&1 >/dev/null; \
615cd81998-08-30Henrik Grubbström (Grubba)  then \
dbb4c61998-09-16Peter Bortas  echo "Altering $$f..."; \ sed -e 's/^\/\/*cvs\/\/*roxen_src/\/cvs\/roxen/' <"$$f/Repository" \ >"$$f/Repository.new" && \ mv "$$f/Repository.new" "$$f/Repository"; \ echo "anonymous@developer.roxen.com:/cvs" >"$$f/Root"; \
615cd81998-08-30Henrik Grubbström (Grubba)  else :; fi; \ done; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  echo Determining if this is a 0.5, 0.6 or dual distribution...; \ if test -d $$version/pike/0.5/. ; then \ if test -d $$version/pike/0.6/. ; then \ type="dual"; \ else \ type="0.5"; \ fi ; \ else \ if test -d $$version/pike/0.6/. ; then \ type="0.6"; \ else \ type="no_pike"; \ fi ; \ fi; \ echo Type $$type.; \
011f801998-04-15Henrik Grubbström (Grubba)  echo Building full NDA distribution...; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  tar cf - $$version | gzip -9 >$$version-$$type-nda-full.tar.gz; \
2961e21998-03-12Henrik Grubbström (Grubba)  if (cd $$version; make keep_dbapi || exit 1); then \ mv $$version/dbapi.tar . || exit 1; \ else :; fi; \
3115ad1998-04-07Henrik Grubbström (Grubba)  (cd $$version; make censor_dbapi || exit 1); \
5208961998-04-07Henrik Grubbström (Grubba)  echo Building full ordinary distribution...; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  tar cf - $$version | gzip -9 >$$version-$$type.tar.gz; \
3115ad1998-04-07Henrik Grubbström (Grubba)  (cd $$version; make censor_crypto || exit 1); \
5208961998-04-07Henrik Grubbström (Grubba)  echo Building lobotomized ordinary distribution...; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  tar cf - $$version | gzip -9 >$$version-$$type-int.tar.gz; \
1ab7ab1998-05-09Henrik Grubbström (Grubba)  echo Restoring DBAPI...; \
3115ad1998-04-07Henrik Grubbström (Grubba)  (cd $$version; tar xf ../dbapi.tar || exit 1); \
5208961998-04-07Henrik Grubbström (Grubba)  echo Building lobotomized NDA distribution...; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  tar cf - $$version | gzip -9 >$$version-$$type-nda-int.tar.gz