Permalink
Browse files

Move to old-code

svn path=/old-code/; revision=156240
  • Loading branch information...
1 parent f3aefdd commit 7050a8171cb08f44723824b0315fbb5194ba781e @migueldeicaza migueldeicaza committed Apr 27, 2010
View
1 acceptance-tests-ifolder/monoskel/AUTHORS
@@ -0,0 +1 @@
+Authors list goes here
View
36 acceptance-tests-ifolder/monoskel/ChangeLog
@@ -0,0 +1,36 @@
+2005-11-07 Everaldo Canuto <everaldo@smios.org>
+
+ * configure.ac: Include a warning about superstring-sharp for developers
+ that use monoskel in your own project.
+
+2005-10-19 Everaldo Canuto <everaldo@smios.org>
+
+ * src/Makefile.am: Fix DISTCLEANFILES to properly execute maintainerclean.
+
+2005-10-08 Everaldo Canuto <everaldo@smios.org>
+
+ * src/Makefile.am: Fix generated_source_files.
+
+2005-09-16 Everaldo Canuto <everaldo@smios.org>
+
+ * src/Makefile.am: Replace by "$<" by $(monoskel_build_sources)
+ in Makefile.am to fix compilation of all sources
+
+2005-09-16 Aaron Bockover <aaron@aaronbock.net>
+
+ * configure.ac: Bumped version to 0.2
+ * man/Makefile.am:
+ * resources/Makefile.am:
+ * src/Makefile.am:
+ * Makefile.am: Add DISTCLEANFILES
+ * Makefile.am: Run sed on monoskel.in
+ * script.in, monoskel.in: Moved script.in to monoskel.in
+ * configure.ac: Added UNSTABLE_INSTALL_ASSEMBLIES and INSTALLED_ASSEMBLIES
+ expansion script to work around potential packaging issues with pkg-config
+ being called from make
+ * src/Makefile.am: removed UNSTABLE_INSTALL_ASSEMBLIES and
+ INSTALLED_ASSEMBLIES, expansion moved to configure.ac
+ * autogen.sh: Much smarter autogen.sh script
+ * configure.in, configure.ac: Renamed configure.in to configure.ac as
+ configure.in convention is deprecated
+
View
28 acceptance-tests-ifolder/monoskel/Makefile.am
@@ -0,0 +1,28 @@
+SUBDIRS = man resources src
+bin_SCRIPTS = monoskel
+EXTRA_DIST = monoskel.in
+
+REWRITE = \
+ sed -e "s|\@prefix\@|$(prefix)|g" \
+ -e "s|\@pkglibdir\@|$(pkglibdir)|g" \
+ -e "s|\@bindir\@|$(bindir)|g" \
+ -e "s|\@MONO\@|$(MONO)|g"
+
+$(bin_SCRIPTS): $(srcdir)/monoskel.in Makefile
+ $(REWRITE) $(srcdir)/monoskel.in > $@.tmp
+ mv $@.tmp $@
+
+CLEANFILES = \
+ monoskel
+
+DISTCLEANFILES = \
+ configure \
+ config.guess \
+ config.sub \
+ Makefile.in \
+ install-sh \
+ aclocal.m4 \
+ INSTALL \
+ COPYING \
+ missing
+
View
1 acceptance-tests-ifolder/monoskel/NEWS
@@ -0,0 +1 @@
+Describe the new features here
View
1 acceptance-tests-ifolder/monoskel/README
@@ -0,0 +1 @@
+All that your user has to know goes here
View
84 acceptance-tests-ifolder/monoskel/autogen.sh
@@ -0,0 +1,84 @@
+#! /bin/sh
+
+PROJECT=monoskel
+FILE=src/main.cs
+CONFIGURE=configure.ac
+
+: ${AUTOCONF=autoconf}
+: ${AUTOHEADER=autoheader}
+: ${AUTOMAKE=automake}
+: ${LIBTOOLIZE=libtoolize}
+: ${ACLOCAL=aclocal}
+: ${LIBTOOL=libtool}
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+TEST_TYPE=-f
+aclocalinclude="-I . $ACLOCAL_FLAGS"
+
+DIE=0
+
+($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $PROJECT."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have automake installed to compile $PROJECT."
+ echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+}
+
+(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
+ ($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "**Error**: You must have \`libtool' installed to compile $PROJECT."
+ echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+ }
+}
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+test $TEST_TYPE $FILE || {
+ echo "You must run this script in the top-level $PROJECT directory"
+ exit 1
+}
+
+if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+fi
+
+case $CC in
+*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
+esac
+
+(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
+ echo "Running $LIBTOOLIZE ..."
+ $LIBTOOLIZE --force --copy
+}
+
+echo "Running $ACLOCAL $aclocalinclude ..."
+$ACLOCAL $aclocalinclude
+
+echo "Running $AUTOMAKE --gnu $am_opt ..."
+$AUTOMAKE --add-missing --gnu $am_opt
+
+echo "Running $AUTOCONF ..."
+$AUTOCONF
+
+echo Running $srcdir/configure $conf_flags "$@" ...
+$srcdir/configure --enable-maintainer-mode $conf_flags "$@" \
+
View
69 acceptance-tests-ifolder/monoskel/configure.ac
@@ -0,0 +1,69 @@
+AC_INIT(README)
+AC_CANONICAL_SYSTEM
+AM_INIT_AUTOMAKE(monoskel, 0.2)
+AM_MAINTAINER_MODE
+
+AC_PROG_INSTALL
+
+dnl pkg-config
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+if test "x$PKG_CONFIG" = "xno"; then
+ AC_MSG_ERROR([You need to install pkg-config])
+fi
+
+dnl C# compiler
+AC_PATH_PROG(CSC, csc, no)
+AC_PATH_PROG(MCS, mcs, no)
+AC_PATH_PROG(MONO, mono, no)
+
+CS="C#"
+if test "x$CSC" = "xno" -a "x$MCS" = "xno" ; then
+ dnl AC_MSG_ERROR([You need to install a C# compiler])
+ AC_MSG_ERROR([No $CS compiler found])
+fi
+
+if test "x$MCS" = "xno" ; then
+ MCS=$CSC
+fi
+
+if test "x$MONO" = "xno"; then
+ AC_MSG_ERROR([No mono runtime found])
+fi
+
+dnl gtk-sharp
+GTKSHARP_REQUIRED_VERSION=1.0
+PKG_CHECK_MODULES(GTKSHARP, gtk-sharp >= $GTKSHARP_REQUIRED_VERSION)
+
+AC_SUBST(MCS)
+
+PKG_CHECK_MODULES(SUPERSTRING_SHARP, superstring-sharp)
+
+dnl find assembly paths for unstable installed assemblies that will be
+dnl copied into monoskel installation directory for local usage with the app
+UNSTABLE_INSTALL_ASSEMBLIES="superstring-sharp"
+INSTALLED_ASSEMBLIES="`$PKG_CONFIG --variable=Libraries $UNSTABLE_INSTALL_ASSEMBLIES`"
+AC_SUBST(INSTALLED_ASSEMBLIES)
+
+AC_OUTPUT([
+Makefile
+man/Makefile
+src/Makefile
+src/AssemblyInfo.cs
+resources/Makefile
+])
+
+dnl Configuration summary
+echo ""
+echo "Configuration summary"
+echo ""
+echo " * Installation prefix = $prefix"
+echo " * $CS compiler: $MCS"
+echo ""
+
+if test "$UNSTABLE_INSTALL_ASSEMBLIES" = "superstring-sharp" ; then
+ echo "*********************************************************************************"
+ echo " This is the monoskel configure script; it includes a dependency on superstring."
+ echo " Don't forget to remove this dependency in the configure.ac script if you intend"
+ echo " to use it in your own project."
+ echo "*********************************************************************************"
+fi
View
4 acceptance-tests-ifolder/monoskel/man/Makefile.am
@@ -0,0 +1,4 @@
+man_MANS = monoskel.1
+EXTRA_DIST = monoskel.1
+DISTCLEANFILES = Makefile.in
+
View
25 acceptance-tests-ifolder/monoskel/man/monoskel.1
@@ -0,0 +1,25 @@
+.\"
+.\" bush manual page.
+.\" Author:
+.\" Gonzalo Paniagua Javier (gonzalo ximian.com)
+.\"
+.de Sp
+.if t .sp .5v
+.if n .sp
+..
+.TH Bush "Bush 0.0.1"
+.SH NAME
+bush \- A faked attempt on something.
+.SH SYNOPSIS
+.PP
+.B bush [--message text]
+.SH DESCRIPTION
+\fIbush\fP is a dummy project provided as a sample on autotools usage.
+.SH OPTIONS
+.TP
+.I "--message"
+You can provide a text to be displayed when the button is clicked.
+.SH SEE ALSO
+.BR mono(1)
+
+
View
2 acceptance-tests-ifolder/monoskel/monoskel.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec @MONO@ @prefix@/lib/monoskel/monoskel.exe $MONO_EXTRA_ARGS "$@"
View
3 acceptance-tests-ifolder/monoskel/resources/Makefile.am
@@ -0,0 +1,3 @@
+EXTRA_DIST = dummy.txt
+DISTCLEANFILES = Makefile.in
+
View
0 acceptance-tests-ifolder/monoskel/resources/dummy.txt
No changes.
View
15 acceptance-tests-ifolder/monoskel/src/AssemblyInfo.cs.in
@@ -0,0 +1,15 @@
+//
+// AssemblyInfo.cs.in for project 'bush'
+//
+// Authors:
+// Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+[assembly: AssemblyVersion("@VERSION@")]
+[assembly: AssemblyTitle ("Skeleton Project")]
+[assembly: AssemblyDescription ("Something fancy here")]
+[assembly: AssemblyCopyright ("Copyright (c) 2004 Novell, Inc.")]
+[assembly: AssemblyCompany ("Novell, Inc.")]
+
View
31 acceptance-tests-ifolder/monoskel/src/Makefile.am
@@ -0,0 +1,31 @@
+monoskeldir=$(pkglibdir)
+monoskel_SCRIPTS = monoskel.exe
+EXTRA_DIST = $(monoskel_sources) $(monoskel_sources_in)
+CLEANFILES = monoskel.exe
+DISTCLEANFILES = AssemblyInfo.cs Makefile.in
+
+monoskel_sources_in = AssemblyInfo.cs.in
+monoskel_generated_sources = $(monoskel_sources_in:.in=)
+monoskel_sources = main.cs
+
+monoskel_build_sources = $(addprefix $(srcdir)/, $(monoskel_sources))
+monoskel_build_sources += $(monoskel_generated_sources)
+resources = $(srcdir)/../resources/dummy.txt
+
+embedded= $(foreach res,$(resources), $(addprefix -resource:,$(res)),$(notdir $(res)))
+
+monoskel.exe: $(monoskel_build_sources) $(resources)
+ $(MCS) $(GTKSHARP_LIBS) $(SUPERSTRINGSHARP_LIBS) $(embedded) -out:$@ $(monoskel_build_sources)
+
+# Install Unstable Mono Libraries (see configure.ac)
+
+install-data-hook:
+ for ASM in $(INSTALLED_ASSEMBLIES); do \
+ $(INSTALL) -c -m 0755 $$ASM $(DESTDIR)$(pkglibdir); \
+ done;
+
+uninstall-hook:
+ for ASM in $(INSTALLED_ASSEMBLIES); do \
+ rm -f $(DESTDIR)$(pkglibdir)/`basename $$ASM`; \
+ done;
+
View
29 acceptance-tests-ifolder/monoskel/src/main.cs
@@ -0,0 +1,29 @@
+using System;
+using Gtk;
+
+public class MonoSkel {
+ public static void Main (string[] args)
+ {
+ Application.Init ();
+ Window w = new Window ("MonoSkel project");
+ w.DefaultHeight = 200;
+ w.DefaultWidth = 250;
+ w.DeleteEvent += new DeleteEventHandler (OnDelete);
+ Button b = new Button ("This is MonoSkel");
+ b.Clicked += new EventHandler (OnClick);
+ w.Add (b);
+ w.ShowAll ();
+ Application.Run ();
+ }
+
+ static void OnClick (object obj, EventArgs args)
+ {
+ Application.Quit ();
+ }
+
+ static void OnDelete (object obj, DeleteEventArgs args)
+ {
+ Application.Quit ();
+ }
+}
+

0 comments on commit 7050a81

Please sign in to comment.