|
From: Markus R. <rol...@us...> - 2005-12-19 20:09:26
|
Update of /cvsroot/simspark/simspark/spark/config.aux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5413/config.aux Added Files: .cvsignore cvs.am dist.am msi.am rpm.am sf.am Log Message: --- NEW FILE: sf.am --- $(UPLOAD_BIN) $(UPLOAD_SRC): TYPE=`echo "$@" | $(SED) -e 's/upload-//'`; \ DIST="dist-$${TYPE}"; \ $(MAKE) $(AM_MAKEFLAGS) $${DIST}; \ list='$(UPLOAD_TARGETS)'; \ pattern=`echo "^{$${TYPE}=>"`; \ for dist in $$list; do \ echo $$dist | grep "^{$${TYPE}=>" >& /dev/null; \ if test "$$?" -eq "0"; then \ TARGET=`echo "$$dist" | $(AWK) -v pattern=$$pattern '{ sub( pattern, ""); sub( /}$$/, "" ); print; }'`; \ fi \ done; \ ncftpput -v upload.sourceforge.net /incoming $$TARGET upload-src: $(UPLOAD_SRC) upload-bin: $(UPLOAD_BIN) upload: upload-src upload-bin --- NEW FILE: .cvsignore --- compile config.guess config.sub depcomp install-sh ltmain.sh missing mkinstalldirs --- NEW FILE: rpm.am --- CLEANFILES += \ install_files \ @PACKAGE@-@VERSION@.spec \ *.rpm \ rpmmacros \ RPMChangeLog EXTRA_DIST += \ spec.tmpl \ RPMChangeLog if BUILD_RPM dist-rpm: rpm dist-srpm: srpm EXTRA_BIN_DISTS += rpm EXTRA_SRC_DISTS += srpm UPLOAD_BIN += upload-rpm UPLOAD_SRC += upload-srpm UPLOAD_TARGETS += \ {rpm=>@PACKAGE@-@VERSION@-0.i*.$(PLATFORM_SUFFIX).rpm} \ {srpm=>@PACKAGE@-@VE...@-0...} rpm: @PACKAGE@-@VERSION@-0.i*.$(PLATFORM_SUFFIX).rpm srpm: @PACKAGE@-@VE...@-0... @PACKAGE@-@VERSION@-0.i*.$(PLATFORM_SUFFIX).rpm: rpmmacros install_files @PACKAGE@-@VERSION@.spec @if ! test -d @PACKAGE@-@VERSION@; then \ $(MAKE) $(AM_MAKEFLAGS) dist-gzip; \ tar zxvf @PACKAGE@-@VERSION@.tar.gz; \ fi @cp @PACKAGE@-@VERSION@.spec @PACKAGE@-@VERSION@/. @tar zcvf @PACKAGE@-@VERSION@.tar.gz @PACKAGE@-@VERSION@ @if test -z "$(PLATFORM_SUFFIX)"; then \ echo ""; \ echo "Error: PLATFORM_SUFFIX is not set."; \ echo "You may only build RPMs if you set the PLATFORM_SUFFIX."; \ echo "You should set it to something like su82 for SuSE 8.2 or"; \ echo "rh71 for RedHat 7.1 or mdk9 for Mandrake 9, etc. e.g."; \ echo ""; \ echo "./configure PLATFORM_SUFFIX=su82"; \ echo ""; \ exit 1; \ fi @$(RPM) -tb @PACKAGE@-@VERSION@.tar.gz @RPMDIR=`cat rpmmacros | $(AWK) '/%_rpmdir/ { print $$2; }'`; \ echo "$$RPMDIR" | grep "%{.*}" >& /dev/null; \ EXIT=$$?; \ while test $$EXIT == "0"; do \ RPMDIR=`echo "$$RPMDIR" | $(AWK) '/%{.*}/ \ { match( $$0, /%{.*}/, macro ); \ suffix = substr( $$0, RSTART + RLENGTH ); \ gsub( /{|}/, "", macro[ 0 ] ); \ while( ( getline < "rpmmacros" ) > 0 ) \ { if( $$1 == macro[ 0 ] ) { print $$2 suffix; exit; } } \ exit 1; \ }'`; \ if test $$? == "0"; then \ echo "$$RPMDIR" | grep "%{.*}" >& /dev/null; \ EXIT=$$?; \ else \ EXIT="1"; \ fi; \ done; \ if test -d "$$RPMDIR"; then \ for dir in `ls "$$RPMDIR"`; do \ ls "$${RPMDIR}$${dir}/@PACKAGE@-@VERSION@-0.$${dir}.rpm" >& /dev/null; \ if test $$? == "0"; then \ cp "$${RPMDIR}$${dir}/@PACKAGE@-@VERSION@-0.$${dir}.rpm" @PACKAGE@-@VERSION@-0.$${dir}.$(PLATFORM_SUFFIX).rpm; \ echo ""; \ echo "@PACKAGE@-@VERSION@-0.$${dir}.$(PLATFORM_SUFFIX).rpm has been created."; \ echo "If you are not a maintainer, please consider emailing the"; \ echo "RPM to sse...@li..., so they can make it" ; \ echo "available for others"; \ echo ""; \ found=true; \ fi; \ done; \ if ! $$found; then \ echo "RPM built but not found."; \ echo "Please copy it to this directory manually."; \ exit 1; \ fi; \ else \ echo "RPM built but I cannot find RPM directory."; \ echo "Please copy it to this directory manually."; \ exit 1; \ fi; @rm -f @PACKAGE@-@VERSION@.tar.gz @rm -f @PACKAGE@-@VERSION@/@PACKAGE@-@VERSION@.spec @PACKAGE@-@VE...@-0...: rpmmacros install_files @PACKAGE@-@VERSION@.spec @if ! test -d @PACKAGE@-@VERSION@; then \ $(MAKE) $(AM_MAKEFLAGS) dist-gzip; \ tar zxvf @PACKAGE@-@VERSION@.tar.gz; \ fi @cp @PACKAGE@-@VERSION@.spec @PACKAGE@-@VERSION@/. @tar zcvf @PACKAGE@-@VERSION@.tar.gz @PACKAGE@-@VERSION@ @$(RPM) -ts @PACKAGE@-@VERSION@.tar.gz @SRPMDIR=`cat rpmmacros | $(AWK) '/%_srcrpmdir/ { print $$2; }'`; \ echo "$$SRPMDIR" | grep "%{.*}" >& /dev/null; \ EXIT=$$?; \ while test $$EXIT == "0"; do \ SRPMDIR=`echo "$$SRPMDIR" | $(AWK) '/%{.*}/ \ { match( $$0, /%{.*}/, macro ); \ suffix = substr( $$0, RSTART + RLENGTH ); \ gsub( /{|}/, "", macro[ 0 ] ); \ while( ( getline < "rpmmacros" ) > 0 ) \ { if( $$1 == macro[ 0 ] ) { print $$2 suffix; exit; } } \ exit 1; \ }'`; \ if test $$? == "0"; then \ echo "$$SRPMDIR" | grep "%{.*}" >& /dev/null; \ EXIT=$$?; \ else \ EXIT="1"; \ fi; \ done; \ if test -d "$$SRPMDIR"; then \ ls "$${SRPMDIR}/@PACKAGE@-@VE...@-0..." >& /dev/null; \ if test $$? == "0"; then \ cp "$${SRPMDIR}/@PACKAGE@-@VE...@-0..." .; \ found=true; \ fi; \ if ! $$found; then \ echo "SRPM built but not found."; \ echo "Please copy it to this directory manually."; \ exit 1; \ fi; \ else \ echo "SRPM built but I cannot find SRPM directory."; \ echo "Please copy it to this directory manually."; \ exit 1; \ fi; @rm -f rpm-@PACKAGE@-@VERSION@.tar.gz @rm -f @PACKAGE@-@VERSION@/@PACKAGE@-@VERSION@.spec ~/.rpmmacros: @echo "~/.rpmmacros not found. Creating one like the following."; \ echo ""; \ echo "%packager <YOUR NAME>"; \ echo ""; \ echo "%distribution <YOUR_DISTRIBUTION>"; \ echo "%vendor RCSS"; \ echo ""; \ echo "%_topdir $$HOME"; \ echo "%_tmppath /tmp/"; \ echo ""; \ echo "%_rpmtopdir %{_topdir}rpm/"; \ echo "%_builddir %{_tmppath}"; \ echo "%_rpmdir %{_rpmtopdir}RPMS/"; \ echo "%_sourcedir %{_rpmtopdir}SOURCES/"; \ echo "%_specdir %{_rpmtopdir}SPECS/"; \ echo "%_srcrpmdir %{_rpmtopdir}SRPMS/"; \ echo ""; \ echo "Where <YOUR_NAME> is your name and <YOUR_DISTRIBUTION> is the"; \ echo "distribution you are building on (e.g. SuSE Linux 8.2 or"; \ echo "RedHat Linux 7.1)."; \ exit -1; rpmmacros: ~/.rpmmacros @cp ~/.rpmmacros rpmmacros; endif RPMChangeLog: ChangeLog $(AWK) '/^[^0-9]/ { if( $$1 == "*" ) $$1 = "-"; print; } /^$$/ { print; } /^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]/ { if( stop ) exit; "date -d " $$1 " +\"%a %b %d %Y\"" | getline test; $$1 = test; print "* " $$0; } /Released @PACKAGE@-/ { gsub( /@PACKAGE@-/, "", $$2 ); split( $$2, ver, "." ); split( "@VERSION@", curr_ver, "." ); if( ver[ 1 ] != curr_ver[ 1 ] || ver[ 2 ] != curr_ver[ 2 ] ) stop = 1; } END { print "[Please see the ChangeLog file for older changes] - Ed."; }' @srcdir@/ChangeLog > @srcdir@/RPMChangeLog spec: @PACKAGE@-@VERSION@.spec @PACKAGE@-@VERSION@.spec: spec.tmpl install_files RPMChangeLog @sed -e 's/@NAME@/@PACKAGE@/' -e 's/@VER@/@VERSION@/' \ "@srcdir@/spec.tmpl" \ | $(AWK) -v files="$$files" \ '{ print; } \ /%defattr/ { while((getline < "install_files" ) > 0 ) { print; } }' \ > @PACKAGE@-@VERSION@.spec cat @srcdir@/RPMChangeLog >> @PACKAGE@-@VERSION@.spec --- NEW FILE: dist.am --- install_files: always @$(MAKE) $(AM_MAKEFLAGS) DESTDIR=$(PWD)/staging install; \ cd $(PWD)/staging; \ find . ! -type d -print | \ $(AWK) '/^\.\/usr\/local\/lib/ { \ sub( /\.\/usr\/local\/lib/, "%{_libdir}" ); } \ /^\.\/usr\/local\/bin/ { \ sub( /\.\/usr\/local\/bin/, "%{_bindir}" ); } \ /^\.\/usr\/local\/include/ { \ sub( /\.\/usr\/local\/include/, "%{_includedir}" ); } \ /^\.\/usr\/local\/share/ { \ sub( /\.\/usr\/local\/share/, "%{_datadir}" ); } \ /^\.\/usr\/local/ { \ sub( /\.\/usr\/local/, "%{_prefix}" ); } \ /^\./ { sub( /\./, "" ); } \ /./ { print; }' > $(PWD)/install_files.tmp; \ rm -rf $(PWD)/staging @if test -f "install_files"; then \ diff install_files.tmp install_files >& /dev/null; \ if test $$? -eq 1; then \ mv install_files.tmp install_files; \ else \ rm -f install_files.tmp; \ fi \ else \ mv install_files.tmp install_files; \ fi always: dist-src: dist-all list='$(EXTRA_SRC_DISTS)'; \ for dist in $$list; do \ $(MAKE) $(AM_MAKEFLAGS) dist-$$dist; \ done dist-bin: list='$(EXTRA_BIN_DISTS)'; \ for dist in $$list; do \ $(MAKE) $(AM_MAKEFLAGS) dist-$$dist; \ done dist2 dist-all2: dist-src dist-bin --- NEW FILE: cvs.am --- CLEANFILES += \ *.tmp branch-major: commit @ver=`echo "@VERSION@" | sed s/\\\\.[0-9][0-9]*\\\\.[0-9][0-9]*$$//`; \ tag=`echo "@PACKAGE@-$$ver"`; \ echo ""; \ echo "Creating major brach: $$tag"; \ cvs tag -b "$$tag"; \ echo "Use 'cvs co -r $$tag @PACKAGE@' to access the branch"; \ echo ""; \ $(AWK) -f @srcdir@/config.aux/rel.awk -v change=1 @srcdir@/configure.ac > configure.tmp; \ touch @srcdir@/commitlog if test "$$USERNAME" = ""; then \ USERNAME="$$USER"; fi; \ if test "$$USEREMAIL" = ""; then \ USEREMAIL="sse...@li..."; fi; \ DATE=`date +"%Y-%m-%d"`; \ LOGHEADER=`echo -e "$$DATE\t$$USERNAME\t<$$USEREMAIL>\n"`; \ echo -e "$$LOGHEADER\n\n\t* ./configure.ac\n\tCreated major branch: $$tag\n\tUse 'cvs co -r $$tag @PACKAGE@' to access the branch" \ | cat - @srcdir@/commitlog > commitlog.tmp @mv commitlog.tmp @srcdir@/commitlog @mv configure.tmp @srcdir@/configure.ac @$(MAKE) $(AM_MAKEFLAGS) commit branch-minor: commit @ver=`echo "@VERSION@" | sed s/\\\\.[0-9][0-9]*$$//`; \ tag=`echo "@PACKAGE@-$$ver" | sed s/\\\\./_/g`; \ echo ""; \ echo "Creating minor brach: $$tag"; \ cvs tag -b "$$tag"; \ echo "Use 'cvs co -r $$tag @PACKAGE@' to access the branch"; \ echo ""; \ $(AWK) -f @srcdir@/config.aux/rel.awk -v change=2 @srcdir@/configure.ac > configure.tmp; \ touch @srcdir@/commitlog if test "$$USERNAME" = ""; then \ USERNAME="$$USER"; fi; \ if test "$$USEREMAIL" = ""; then \ USEREMAIL="sse...@li..."; fi; \ DATE=`date +"%Y-%m-%d"`; \ LOGHEADER=`echo -e "$$DATE\t$$USERNAME\t<$$USEREMAIL>\n"`; \ echo -e "$$LOGHEADER\n\n\t* ./configure.ac\n\tCreated minor branch: $$tag\n\tUse 'cvs co -r $$tag @PACKAGE@' to access the branch" \ | cat - @srcdir@/commitlog > commitlog.tmp @mv commitlog.tmp @srcdir@/commitlog @mv configure.tmp @srcdir@/configure.ac @$(MAKE) $(AM_MAKEFLAGS) commit release: update distcheck add_rel commit tag quick-release: update add_rel commit tag tag: do_tag inc_rel do_tag: @tag=`echo @PACKAGE@-@VERSION@ | sed s/\\\\./_/g`; \ echo "tagging release with $$tag"; \ echo `cvs tag $$tag`; \ echo "You can access this release by running:"; \ echo " cvs co -r $$tag -d @PACKAGE@-@VERSION@ @PACKAGE@"; \ echo "The release will then be available in the @PACKAGE@-@VERSION@ directory"; add_rel: touch @srcdir@/commitlog if test "$$USERNAME" = ""; then \ USERNAME="$$USER"; fi; \ if test "$$USEREMAIL" = ""; then \ USEREMAIL="sse...@li..."; fi; \ DATE=`date +"%Y-%m-%d"`; \ LOGHEADER=`echo -e "$$DATE\t$$USERNAME\t<$$USEREMAIL>\n"`; \ echo -e "$$LOGHEADER\n\n\t* ./configure.ac\n\tReleased @PACKAGE@-@VERSION@\n\tYou can access this release by running:\n\t\tcvs co -r $$tag -d @PACKAGE@-@VERSION@ @PACKAGE@\n\tThe release will then be available in the @PACKAGE@-@VERSION@ directory" \ | cat - @srcdir@/commitlog > commitlog.tmp mv commitlog.tmp @srcdir@/commitlog inc_rel: $(AWK) -f @srcdir@/config.aux/rel.awk -v change=3 @srcdir@/configure.ac > configure.tmp; mv configure.tmp @srcdir@/configure.ac $(MAKE) $(AM_MAKEFLAGS) commit update: @cvs -z9 update commit: update commitlog @cat @srcdir@/commitlog @srcdir@/ChangeLog > ChangeLog.tmp @mv ChangeLog.tmp @srcdir@/ChangeLog @cvs -z9 commit -F commitlog @rm -f commitlog commitlog: $(DISTFILES) @if test "$$USERNAME" = ""; then \ USERNAME="$$USER"; \ fi; \ if test "$$USEREMAIL" = ""; then \ USEREMAIL="sse...@li..."; \ fi; \ DATE=`date +"%Y-%m-%d"`; \ cvs -z9 diff -u --brief 2>&1 | $(AWK) \ -v title="/* -*-change-log-*- */\n$$DATE\t$$USERNAME\t<$$USEREMAIL>\n" \ 'BEGIN { print title; } \ /^Index/ { print "\t* ./" $$2 } \ /^cvs server: .* is a new entry/ { print "\t* ./" $$3 } \ END { print ""; }' \ > commitlog.tmp @if test -s commitlog.tmp; then \ if test -f @srcdir@/commitlog; then \ cat @srcdir@/commitlog >> commitlog.tmp; \ fi; \ mv commitlog.tmp @srcdir@/commitlog; \ if test -n "$(CVSEDITOR)"; then $(CVSEDITOR) @srcdir@/commitlog; \ elif test -n "$(VISUAL)"; then $(VISUAL) @srcdir@/commitlog; \ elif test -n "$(EDITOR)"; then $(EDITOR) @srcdir@/commitlog; \ else \ EDITOR=`which vi`; \ if test -n "$$EDITOR" && test -x "$$EDITOR"; then \ $$EDITOR @srcdir@/commitlog; \ else \ echo ""; \ echo "Cannot find an editor."; \ echo "Please edit @srcdir@/commitlog manually\n"; \ exit 1; \ fi; \ fi; \ $(AWK) 'BEGIN { first=1; } /\/\* -\*-change-log-\*- \*\// { $$0 = ""; } // { if( first==1 && $$0 == "" ) { first=0; } else { print; } }' @srcdir@/commitlog > commitlog.tmp; \ mv commitlog.tmp @srcdir@/commitlog; \ fi --- NEW FILE: msi.am --- #MSI_SETUP_FILE must be set to the msi file that is created by VC++ dist-msi: @if test -f "$(MSI_SETUP_FILE)"; then \ cp "$(MSI_SETUP_FILE)" @PACKAGE@-@VERSION@.msi; \ else \ echo "the msi file ($(MSI_SETUP_FILE)) must be (re)created"; \ echo "by building it with VC++7"; \ fi EXTRA_BIN_DISTS += msi UPLOAD_BIN += upload-msi UPLOAD_TARGETS += \ {msi=>@PACKAGE@-@VERSION@.msi} |