[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: README



  User: ahvezda 
  Date: 06/11/05 23:38:15

  Modified:    .        buildgeda.sh
  Added:       .        README dist.bom
  Removed:     .        tarball.bom
  Log:
  Lots of work on buildgeda scripts
  
  
  
  
  Revision  Changes    Path
  1.2       +168 -6    eda/geda/buildgeda/buildgeda.sh
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: buildgeda.sh
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/buildgeda/buildgeda.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- buildgeda.sh	9 Oct 2006 02:05:05 -0000	1.1
  +++ buildgeda.sh	6 Nov 2006 04:38:13 -0000	1.2
  @@ -1,10 +1,14 @@
   #!/bin/sh
   
  +# Set the version of this binary build
  +export VERSION=20050820
  +
   # Set the gEDA/gaf version
   export GAFVERSION=20050820
   
   # Set the directory where things will be installed to
  -export INSTALLDIR=/usr/local/geda-$GAFVERSION
  +#export INSTALLDIR=/usr/local/geda-$VERSION
  +export INSTALLDIR=$HOME/geda-$VERSION
   
   # Set log filename
   export LOGFILE=/tmp/buildgeda.log
  @@ -21,6 +25,9 @@
   # to current dir)
   export SRCDIR=`pwd`/sources
   
  +# Set the directory where the dist tarball will be assembled
  +export DISTDIR=`pwd`/geda-$VERSION
  +
   # Set these to point to GNU make
   export MAKE=make
   export GNUMAKE=make
  @@ -42,6 +49,17 @@
   #
   #########################################################################
   
  +usage()
  +{
  +	echo "Usage: $0 [-d] [-a] [-t] [-p packgename]"
  +	echo " -d    		Build dependancies"
  +	echo " -a    		Build everything (except dependancies)"
  +	echo " -t 		Build tarball (distribution)"
  +	echo " -p packagename	Build packagename"
  +	echo ""
  +	exit 0
  +}
  +
   # $1 is the location, $2 name of package (without tar.gz or tar.bz2)
   get_package()
   {
  @@ -182,6 +200,7 @@
   	mkdir -p $TARDIR > /dev/null 2>&1
   	mkdir -p $SRCDIR > /dev/null 2>&1
   	mkdir -p $INSTALLDIR > /dev/null 2>&1
  +	mkdir -p $INSTALLDIR/bin > /dev/null 2>&1
   
   	# Check for bzip2 as some tarballs come as .tar.bz2 files
   	whichbzip2=`which bzip2`
  @@ -433,7 +452,7 @@
   	configure_build_install http://www.geda.seul.org/dist wxGTK-2.6.1
   }
   
  -build_geda_gaf()
  +build_gaf()
   {
   	rm -f Makefile
   	rm -f $SRCDIR/Makefile
  @@ -524,6 +543,107 @@
   	cd $cpwd 
   }
   
  +build_dist()
  +{
  +	cpwd=`pwd`
  +
  +	echo Cleaning and recreating $DISTDIR
  +	rm -rf $DISTDIR
  +	mkdir -p $DISTDIR > /dev/null 2>&1
  +
  +	# Create distribution directory and copy all the files specified
  +	# in dist.bom into this directory
  +	for i in `cat dist.bom`
  +	do
  +		comment=`echo $i | grep ^#`
  +		if [ "$comment" = "" ] 
  +		then
  +			echo Copying $i
  +
  +			if [ ! -e "$INSTALLDIR/$i" ] 
  +			then
  +				echo "ERROR! $DISTDIR/$i does not exist"
  +				echo "ERROR! dist.bom lists this file, so where is it?"
  +				exit 2
  +			fi
  +
  +			if [ -d "$INSTALLDIR/$i" ] 
  +			then
  +				install -d "$DISTDIR/$i"
  +				dirname=`dirname $i`
  +				cp -rp "$INSTALLDIR/$i" "$DISTDIR/$dirname"
  +			else
  +				install -D "$INSTALLDIR/$i" "$DISTDIR/$i"
  +			fi
  +		fi
  +	done
  +
  +	cp scripts/execwrapper $DISTDIR/bin
  +	chmod 755 $DISTDIR/bin/execwrapper
  +
  +	# Rename and link all files to the execwrapper
  +	cd $DISTDIR/bin
  +	for i in *
  +	do
  +		type=`file $i | grep ELF`
  +		if [ "$type" != "" ]
  +		then
  +			echo "Linking wrapper for $i"
  +			mv -f $i $i.x
  +			ln -s ./execwrapper $i
  +		fi
  +	done
  +	cd $cpwd
  +
  +	# Fix up hardcoded path to something the install script can fixup
  +	#
  +	# Eventually change all /usr/local/geda-$VERSION to $INSTALLDIR
  +	# TBD
  +	#
  +	cd $DISTDIR
  +	# Ignore all: .so, .la, all files in bin 
  +	files=`find . -name \* -print | grep -v \.so | grep -v \.la | grep -v /bin/`
  +	fixedupfiles=
  +	for i in $files
  +	do
  +		workneeded=`grep "/usr/local/geda-$VERSION" $i`
  +		if [ "$workneeded" != "" ]
  +		then
  +			echo Fixing up $i
  +			fixedupfiles="$fixedupfiles $i"
  +			mv $i $i.old
  +			cat $i.old | sed "s^/usr/local/geda-$VERSION^%INSTALLDIR%^g" > $i
  +			rm -f $i.old
  +		fi
  +	done
  +	cd $cpwd
  +
  +
  +	# Create distribution directory
  +	cd $DISTDIR
  +	mkdir dist > /dev/null 2>&1
  +	mv -f * dist > /dev/null 2>&1
  +	cd $cpwd
  +	cp README $DISTDIR
  +
  +	# Update the installed script to include all the fixedupfiles
  +	# plus the execwrapper
  +	cat scripts/install.sh | \
  +		sed "s^%FIXUPFILES%^./bin/execwrapper $fixedupfiles^g" | \
  +		sed "s^%VERSION%^$VERSION^g" > $DISTDIR/install.sh
  +	chmod 755 $DISTDIR/install.sh
  +
  +	# Create distribution tarball
  +	echo Creating distribution tarball
  +	rm -f geda-$VERSION.tar.gz
  +	distbasename=`basename $DISTDIR`
  +	tar cvf geda-$VERSION.tar $distbasename > distlog.txt
  +	gzip -9 geda-$VERSION.tar
  +
  +	# Cleanup distdir
  +	rm -rf $DISTDIR
  +}
  +
   
   #######################################################################
   # Main function
  @@ -531,14 +651,56 @@
   
   setup
   
  -build_dependencies
  -build_geda_gaf
  -build_iverilog
  -build_gspiceui
  +pkgs_to_build=
  +
  +while [ "$1" != "" ]; do
  +    case $1 in
  +	-d )
  +		pkgs_to_build="build_dependancies $pkgs_to_build"
  +		;;
  +
  +	-a )
  +		pkgs_to_build="$pkgs_to_build build_gaf build_iverilog build_gspiceui"
  +		;;
  +	-t )
  +		pkgs_to_build="$pkgs_to_build build_dist"
  +		;;
  +	-p )
  +		shift
  +		pkgs_to_build="$pkgs_to_build build_$1"
  +		;;
  +        -h | --help )           
  +		usage
  +                exit
  +                ;;
  +        * )                     
  +		usage
  +                exit 1
  +		;;
  +    esac
  +    shift
  +
  +done
  +
  +if [ "$pkgs_to_build" = "" ]
  +then
  +	echo "You must specify something to build"
  +	usage
  +	exit 1
  +fi
  +
  +for i in $pkgs_to_build
  +do
  +	echo Executing: $i
  +	$i
  +done
  +
  +
   
   # TBD
   #build_gnucap
   
  +
   cleanup
   
   echo done!
  
  
  
  1.1                  eda/geda/buildgeda/README
  
  Index: README
  ===================================================================
  
  gEDA
  
  GPL Electronic Design Automation
  ------------------------------------------------------------------------------
  
  README placeholder
  
  
  
  
  
  1.1                  eda/geda/buildgeda/dist.bom
  
  Index: dist.bom
  ===================================================================
  bin/gschem
  bin/gnetlist
  bin/mk_verilog_syms
  bin/sw2asc
  bin/sch2eaglepos.sh
  bin/gattrib
  bin/gsymcheck
  bin/geda
  bin/graphman
  bin/raw2gw
  bin/gmk_sym
  bin/smash_megafile
  bin/convert_sym
  bin/sarlacc_schem
  bin/olib
  bin/gsch2pcb
  bin/grenum
  bin/gschlas
  bin/sarlacc_sym
  bin/gschupdate
  bin/gsymupdate
  bin/gschemdoc
  bin/refdes_renum
  bin/tragesym
  bin/pads_backannotate
  bin/garchive
  bin/gsymfix.pl
  #bin/gspiceui
  etc/fonts
  etc/pango
  etc/gtk-2.0
  lib/libgcc_s.so.1
  lib/libgcc_s.so
  lib/libstdc++.so.6.0.8
  lib/libstdc++.so.6
  lib/libstdc++.so
  lib/libmudflap.so.0.0.0
  lib/libmudflap.so.0
  lib/libmudflap.so
  lib/libmudflapth.so.0.0.0
  lib/libmudflapth.so.0
  lib/libmudflapth.so
  lib/libssp.so.0.0.0
  lib/libssp.so.0
  lib/libssp.so
  lib/libjpeg.so.62.0.0
  lib/libjpeg.so.62
  lib/libjpeg.so
  lib/libtiff.so.3.7.4
  lib/libtiff.so.3
  lib/libtiff.so
  lib/libasprintf.so.0.0.0
  lib/libasprintf.so.0
  lib/libasprintf.so
  lib/libgettextlib-0.14.5.so
  lib/libgettextlib.so
  lib/libgettextsrc-0.14.5.so
  lib/preloadable_libintl.so
  lib/libgettextsrc.so
  lib/libgettextpo.so.0.1.0
  lib/libgettextpo.so.0
  lib/libgettextpo.so
  lib/libfreetype.so.6.3.8
  lib/libfreetype.so.6
  lib/libfreetype.so
  lib/libXrender.so.1.2.2
  lib/libXrender.so.1
  lib/libXrender.so
  lib/libexpat.so.0.5.0
  lib/libexpat.so.0
  lib/libexpat.so
  lib/libfontconfig.so.1.0.4
  lib/libfontconfig.so.1
  lib/libfontconfig.so
  lib/libXft.so.2.1.2
  lib/libXft.so.2
  lib/libXft.so
  lib/libXfixes.so.0.1.0
  lib/libXfixes.so.0
  lib/libXfixes.so
  lib/libXcursor.so.1.0.2
  lib/libXcursor.so.1
  lib/libXcursor.so
  lib/libz.so.1.2.3
  lib/libz.so
  lib/libz.so.1
  lib/libpng12.so.0.0.0
  lib/libpng12.so.0
  lib/libpng12.so
  lib/libpng.so.3.0.0
  lib/libpng.so.3
  lib/libpng.so
  lib/libcairo.so.2.9.2
  lib/libcairo.so.2
  lib/libcairo.so
  lib/glib-2.0
  lib/glib-2.0/include
  lib/glib-2.0/include/glibconfig.h
  lib/libglib-2.0.so.0.800.4
  lib/libglib-2.0.so.0
  lib/libglib-2.0.so
  lib/libgobject-2.0.so.0.800.4
  lib/libgobject-2.0.so.0
  lib/libgobject-2.0.so
  lib/libgmodule-2.0.so.0.800.4
  lib/libgmodule-2.0.so.0
  lib/libgmodule-2.0.so
  lib/libgthread-2.0.so.0.800.4
  lib/libgthread-2.0.so.0
  lib/libgthread-2.0.so
  lib/libatk-1.0.so.0.1011.0
  lib/libatk-1.0.so.0
  lib/libatk-1.0.so
  lib/libpango-1.0.so.0.1001.0
  lib/libpango-1.0.so.0
  lib/libpango-1.0.so
  lib/libpangox-1.0.so.0.1001.0
  lib/libpangox-1.0.so.0
  lib/libpangox-1.0.so
  lib/libpangoft2-1.0.so.0.1001.0
  lib/libpangoft2-1.0.so.0
  lib/libpangoft2-1.0.so
  lib/libpangoxft-1.0.so.0.1001.0
  lib/libpangoxft-1.0.so.0
  lib/libpangoxft-1.0.so
  lib/libpangocairo-1.0.so.0.1001.0
  lib/libpangocairo-1.0.so.0
  lib/libpangocairo-1.0.so
  lib/pango/1.4.0/modules
  lib/pango/1.4.0/modules/pango-arabic-fc.so
  lib/pango/1.4.0/modules/pango-basic-x.so
  lib/pango/1.4.0/modules/pango-basic-fc.so
  lib/pango/1.4.0/modules/pango-hangul-fc.so
  lib/pango/1.4.0/modules/pango-hebrew-fc.so
  lib/pango/1.4.0/modules/pango-indic-fc.so
  lib/pango/1.4.0/modules/pango-khmer-fc.so
  lib/pango/1.4.0/modules/pango-syriac-fc.so
  lib/pango/1.4.0/modules/pango-thai-fc.so
  lib/pango/1.4.0/modules/pango-tibetan-fc.so
  lib/libgdk_pixbuf-2.0.so.0.800.7
  lib/libgdk_pixbuf-2.0.so.0
  lib/libgdk_pixbuf-2.0.so
  lib/gtk-2.0/2.4.0/loaders
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-png.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-gif.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ico.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ani.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ras.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tiff.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-pnm.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-bmp.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-wbmp.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xbm.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tga.so
  lib/gtk-2.0/2.4.0/loaders/libpixbufloader-pcx.so
  lib/gtk-2.0/2.4.0/immodules
  lib/gtk-2.0/2.4.0/immodules/im-xim.so
  lib/gtk-2.0/2.4.0/immodules/im-am-et.so
  lib/gtk-2.0/2.4.0/immodules/im-cedilla.so
  lib/gtk-2.0/2.4.0/immodules/im-cyrillic-translit.so
  lib/gtk-2.0/2.4.0/immodules/im-inuktitut.so
  lib/gtk-2.0/2.4.0/immodules/im-ipa.so
  lib/gtk-2.0/2.4.0/immodules/im-thai-broken.so
  lib/gtk-2.0/2.4.0/immodules/im-ti-er.so
  lib/gtk-2.0/2.4.0/immodules/im-ti-et.so
  lib/gtk-2.0/2.4.0/immodules/im-viqr.so
  lib/gtk-2.0/2.4.0/engines
  lib/gtk-2.0/2.4.0/engines/libpixmap.so
  lib/libgdk-x11-2.0.so.0.800.7
  lib/libgdk-x11-2.0.so.0
  lib/libgdk-x11-2.0.so
  lib/libgtk-x11-2.0.so.0.800.7
  lib/libgtk-x11-2.0.so.0
  lib/libgtk-x11-2.0.so
  lib/libgdk_pixbuf_xlib-2.0.so.0.800.7
  lib/libgdk_pixbuf_xlib-2.0.so.0
  lib/libgdk_pixbuf_xlib-2.0.so
  lib/libguile-ltdl.so.1.0.1
  lib/libguile-ltdl.so.1
  lib/libguile-ltdl.so
  lib/libguile.so.12.3.1
  lib/libguile.so.12
  lib/libguile.so
  lib/libguilereadline-v-12.so.12.3.1
  lib/libguilereadline-v-12.so.12
  lib/libguilereadline-v-12.so
  lib/libguile-srfi-srfi-4-v-1.so.1.0.1
  lib/libguile-srfi-srfi-4-v-1.so.1
  lib/libguile-srfi-srfi-4-v-1.so
  lib/libguile-srfi-srfi-13-14-v-1.so.1.0.1
  lib/libguile-srfi-srfi-13-14-v-1.so.1
  lib/libguile-srfi-srfi-13-14-v-1.so
  lib/libstroke.so.0.0.5
  lib/libstroke.so.0
  lib/libstroke.so
  lib/libgstroke.so.0.0.5
  lib/libgstroke.so.0
  lib/libgstroke.so
  lib/libwx_base-2.6.so.0
  lib/libwx_base-2.6.so.0.0.0
  lib/libwx_base-2.6.so
  lib/libwx_base_net-2.6.so.0
  lib/libwx_base_net-2.6.so.0.0.0
  lib/libwx_base_net-2.6.so
  lib/libwx_gtk2_core-2.6.so.0
  lib/libwx_gtk2_core-2.6.so.0.0.0
  lib/libwx_gtk2_core-2.6.so
  lib/libwx_gtk2_adv-2.6.so.0
  lib/libwx_gtk2_adv-2.6.so.0.0.0
  lib/libwx_gtk2_adv-2.6.so
  lib/libwx_gtk2_media-2.6.so
  lib/libwx_gtk2_media-2.6.so.0.0.0
  lib/libwx_gtk2_media-2.6.so.0
  lib/libwx_gtk2_html-2.6.so.0
  lib/libwx_gtk2_html-2.6.so.0.0.0
  lib/libwx_gtk2_html-2.6.so
  lib/libwx_gtk2_qa-2.6.so
  lib/libwx_gtk2_qa-2.6.so.0.0.0
  lib/libwx_gtk2_qa-2.6.so.0
  lib/libwx_base_xml-2.6.so.0
  lib/libwx_base_xml-2.6.so.0.0.0
  lib/libwx_base_xml-2.6.so
  lib/libwx_gtk2_xrc-2.6.so.0
  lib/libwx_gtk2_xrc-2.6.so.0.0.0
  lib/libwx_gtk2_xrc-2.6.so
  lib/libgeda.so.24.0.0
  lib/libgeda.so.24
  lib/libgeda.so
  man/man1/gschem.1
  man/man1/gnetlist.1
  man/man1/gsymcheck.1
  man/man1/grenum.1
  share/locale/pt_BR/LC_MESSAGES/geda-gschem.mo
  share/locale/ru/LC_MESSAGES/geda-gschem.mo
  share/locale/de_DE/LC_MESSAGES/geda-gschem.mo
  share/locale/de_DE/LC_MESSAGES/geda.mo
  share/locale/nl_NL/LC_MESSAGES/geda-gschem.mo
  share/locale/ja_JP/LC_MESSAGES/geda-gschem.mo
  share/locale/it_IT/LC_MESSAGES/geda-gschem.mo
  share/locale/es_ES/LC_MESSAGES/geda-gschem.mo
  share/locale/fr_FR/LC_MESSAGES/geda-gschem.mo
  share/locale/fr_FR/LC_MESSAGES/geda.mo
  share/doc/geda-doc
  share/themes
  share/guile
  share/gEDA
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs