[prev in list] [next in list] [prev in thread] [next in thread] 

List:       moblin-dev
Subject:    [Moblin Dev] [PATCH] Moblin Image Creator supported autotools for
From:       Mitsutaka AMANO <mamano () miraclelinux ! com>
Date:       2008-05-28 13:55:42
Message-ID: 483D645E.6090401 () miraclelinux ! com
[Download RAW message or body]

Dear Praj,

I created MIC for autotools.
In order to the i18n, we should support an autotools.

Please review it! If this patch is applied, we become easy to internationalization.
If this patch is commited, I work for i18n support.

Thanks,

-- 
========================================
  Mitsutaka Amano
  MIRACLE LINUX CORPORATION
========================================


["moblin-image-creator_autotools_support.patch" (text/plain)]

diff --git a/.empty b/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..0d7375c
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,9 @@
+2008-05-28  gettextize  <bug-gnu-gettext@gnu.org>
+
+	* configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
+
+2008-05-28  gettextize  <bug-gnu-gettext@gnu.org>
+
+	* Makefile.am (EXTRA_DIST): Add config.rpath, m4/ChangeLog.
+	* configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.16.1.
+
diff --git a/Makefile b/Makefile
deleted file mode 100644
index cb42df2..0000000
--- a/Makefile
+++ /dev/null
@@ -1,101 +0,0 @@
-SHAREDIR = /usr/share/pdk/
-VARDIR = /var/lib/moblin-image-creator
-
-VERSION = 0.1
-all:
-	${MAKE} -C platforms
-
-# This target will do a cleanall and then reinstall
-cleaninstall: cleanall install
-
-# Simple tests
-runtests: runbasictests
-
-# Everytime we install the code we want the basic unit tests to run
-install: basicinstall runbasictests
-
-basicinstall: all
-	@echo "Installing platform definitions..."
-	@${MAKE} -C platforms install
-	@echo -n "Installing moblin-image-creator..."
-	@mkdir -p ${DESTDIR}/${VARDIR}
-	@mkdir -p ${DESTDIR}/${VARDIR}/projects
-	@mkdir -p ${DESTDIR}/${SHAREDIR}/default_config
-	@mkdir -p ${DESTDIR}/${SHAREDIR}/lib
-	@mkdir -p ${DESTDIR}/${SHAREDIR}/locale
-	@mkdir -p ${DESTDIR}/${SHAREDIR}/utils
-	@head -n 1 debian/changelog > ${DESTDIR}/${SHAREDIR}/version
-	@cp libs/*.py  ${DESTDIR}/${SHAREDIR}/lib
-	@cp gui/*.py  ${DESTDIR}/${SHAREDIR}/lib
-	@cp gui/*.glade ${DESTDIR}/${SHAREDIR}
-	@cp gui/*.png ${DESTDIR}/${SHAREDIR}
-	@cp gui/newFeature ${DESTDIR}/${SHAREDIR}
-	@cp COPYING ${DESTDIR}/${SHAREDIR}/
-	@cp -a gui/pixmaps/. ${DESTDIR}/${SHAREDIR}
-	@cp default_config/defaults.cfg ${DESTDIR}/${SHAREDIR}/default_config/
-	@mkdir -p ${DESTDIR}/usr/bin
-	@rm -f ${DESTDIR}/usr/sbin/image-creator
-	@cp image-creator ${DESTDIR}/usr/bin/
-	@mkdir -p ${DESTDIR}/etc/bash_completion.d/
-	@cp utils/image-creator-completion.bash ${DESTDIR}/etc/bash_completion.d/
-	@mkdir -p ${DESTDIR}/${SHAREDIR}/gnome/help/image-creator/
-	@cp -a help/* ${DESTDIR}/${SHAREDIR}/gnome/help/image-creator/
-	@cp utils/*.py  ${DESTDIR}/${SHAREDIR}/utils/
-	@mkdir -p ${DESTDIR}/usr/share/applications/
-	sed '{s/%%EXEC_CMD%%/gksu \/usr\/bin\/image-creator/}' \
image-creator.desktop.template > \
                ${DESTDIR}/usr/share/applications/image-creator.desktop
-	@echo "Done"
-
-rpm:
-	@echo create the tarball...
-	cd ..; cp -a moblin-image-creator moblin-image-creator-${VERSION}; tar zcpvf \
/usr/src/rpm/SOURCES/moblin-image-creator-${VERSION}.tgz \
                moblin-image-creator-${VERSION}/; rm -fR \
                moblin-image-creator-${VERSION}
-	rpmbuild -bb moblin-image-creator.spec
-
-# Cleans out the current directory cruft
-clean:
-	@echo -n "Cleaning up working directory files..."
-	@rm -f *.pyc
-	@rm -f unittest/*.pyc
-	@find -name \*~ -exec rm -f {} \;
-	@${MAKE} -C platforms clean
-	@echo "Done"
-
-# Cleans out the installation target
-cleanall: clean
-	@echo -n "Removing previously installed files..."
-	@rm -rfv ${DESTDIR}/${VARDIR}/rootstraps
-	@rm -rf ${DESTDIR}/${SHAREDIR}/gnome
-	@rm -rf ${DESTDIR}/${SHAREDIR}/lib
-	@rm -rf ${DESTDIR}/${SHAREDIR}/locale
-	@rm -rf ${DESTDIR}/${SHAREDIR}/platforms
-	@rm -f ${DESTDIR}/${SHAREDIR}/*.glade
-	@rm -f ${DESTDIR}/usr/bin/image-creator
-	@rm -f ${DESTDIR}/usr/sbin/image-creator
-	@rm -f ${DESTDIR}/etc/bash_completion.d/image-creator-completion.bash
-	@rm -rf ${DESTDIR}/${SHAREDIR}/utils
-	@rm -f ${DESTDIR}/usr/share/applications/image-creator.desktop
-	@echo "Done"
-
-# Run the unit tests which run fairly quickly
-runbasictests:
-	@echo "Running basic unit tests..."
-	unittest/testMoblin_apt.py
-	unittest/test_fsets.py
-	unittest/testProject.py
-	unittest/testSdk.py
-	@echo "Basic unit tests completed"
-
-# Run all of our tests, even the ones that take a long time to run
-runalltests: runtests
-	@echo "Running unit tests that take a long time..."
-	unittest/testInstallImage.py
-
-uninstall: cleanall
-	@echo "Uninstalling moblin-image-creator..."
-	@rm -f ${DESTDIR}/${SHAREDIR}/*.png
-	@rm -f ${DESTDIR}/${SHAREDIR}/*.xcf
-	@rm -f ${DESTDIR}/${SHAREDIR}/*.xpm
-	@rm -f ${DESTDIR}/${SHAREDIR}/README
-	@rm -f ${DESTDIR}/${SHAREDIR}/COPYING
-	@rm -f ${DESTDIR}/${SHAREDIR}/version
-	@find ${DESTDIR}/${SHAREDIR}/projects -type f -exec echo Project found: {} \;
-	@echo "Done"
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..5d640ed
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,17 @@
+SUBDIRS = default_config gui help libs platforms po utils
+
+ACLOCAL_AMFLAGS = -I m4
+
+#EXTRA_DIST = config.rpath m4/ChangeLog  config.rpath m4/ChangeLog
+
+executedir = ${bindir}
+execute_DATA = \
+	image-creator
+
+extradir = ${pkgdatadir}
+extra_DATA = \
+	COPYING
+
+vardir = ${localstatedir}/lib/moblin-image-creator
+var_DATA = \
+	.empty
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..7c95c8f
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -x
+intltoolize --force || exit 1
+aclocal -I m4 || exit 1
+autoconf || exit 1
+automake --add-missing --foreign || exit 1
diff --git a/config.rpath b/config.rpath
new file mode 100755
index 0000000..c492a93
--- /dev/null
+++ b/config.rpath
@@ -0,0 +1,614 @@
+#! /bin/sh
+# Output a system dependent set of variables, describing how to set the
+# run time search path of shared libraries in an executable.
+#
+#   Copyright 1996-2006 Free Software Foundation, Inc.
+#   Taken from GNU libtool, 2001
+#   Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+#
+#   This file is free software; the Free Software Foundation gives
+#   unlimited permission to copy and/or distribute it, with or without
+#   modifications, as long as this notice is preserved.
+#
+# The first argument passed to this file is the canonical host specification,
+#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or
+#    CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
+# should be set by the caller.
+#
+# The set of defined variables is at the end of this script.
+
+# Known limitations:
+# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
+#   than 256 bytes, otherwise the compiler driver will dump core. The only
+#   known workaround is to choose shorter directory names for the build
+#   directory and/or the installation directory.
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+shrext=.so
+
+host="$1"
+host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+# Code taken from libtool.m4's _LT_CC_BASENAME.
+
+for cc_temp in $CC""; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
+
+# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
+
+wl=
+if test "$GCC" = yes; then
+  wl='-Wl,'
+else
+  case "$host_os" in
+    aix*)
+      wl='-Wl,'
+      ;;
+    darwin*)
+      case $cc_basename in
+        xlc*)
+          wl='-Wl,'
+          ;;
+      esac
+      ;;
+    mingw* | pw32* | os2*)
+      ;;
+    hpux9* | hpux10* | hpux11*)
+      wl='-Wl,'
+      ;;
+    irix5* | irix6* | nonstopux*)
+      wl='-Wl,'
+      ;;
+    newsos6)
+      ;;
+    linux*)
+      case $cc_basename in
+        icc* | ecc*)
+          wl='-Wl,'
+          ;;
+        pgcc | pgf77 | pgf90)
+          wl='-Wl,'
+          ;;
+        ccc*)
+          wl='-Wl,'
+          ;;
+        como)
+          wl='-lopt='
+          ;;
+        *)
+          case `$CC -V 2>&1 | sed 5q` in
+            *Sun\ C*)
+              wl='-Wl,'
+              ;;
+          esac
+          ;;
+      esac
+      ;;
+    osf3* | osf4* | osf5*)
+      wl='-Wl,'
+      ;;
+    sco3.2v5*)
+      ;;
+    solaris*)
+      wl='-Wl,'
+      ;;
+    sunos4*)
+      wl='-Qoption ld '
+      ;;
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      wl='-Wl,'
+      ;;
+    sysv4*MP*)
+      ;;
+    unicos*)
+      wl='-Wl,'
+      ;;
+    uts4*)
+      ;;
+  esac
+fi
+
+# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
+
+hardcode_libdir_flag_spec=
+hardcode_libdir_separator=
+hardcode_direct=no
+hardcode_minus_L=no
+
+case "$host_os" in
+  cygwin* | mingw* | pw32*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test "$GCC" != yes; then
+      with_gnu_ld=no
+    fi
+    ;;
+  interix*)
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
+    with_gnu_ld=yes
+    ;;
+  openbsd*)
+    with_gnu_ld=no
+    ;;
+esac
+
+ld_shlibs=yes
+if test "$with_gnu_ld" = yes; then
+  # Set some defaults for GNU ld with shared library support. These
+  # are reset later if shared libraries are not supported. Putting them
+  # here allows them to be overridden if necessary.
+  # Unlike libtool, we use -rpath here, not --rpath, since the documented
+  # option of GNU ld is called -rpath, not --rpath.
+  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+  case "$host_os" in
+    aix3* | aix4* | aix5*)
+      # On AIX/PPC, the GNU linker is very broken
+      if test "$host_cpu" != ia64; then
+        ld_shlibs=no
+      fi
+      ;;
+    amigaos*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
+      # that the semantics of dynamic libraries on AmigaOS, at least up
+      # to version 4, is to share data among multiple programs linked
+      # with the same dynamic library.  Since this doesn't match the
+      # behavior of shared libraries on other platforms, we cannot use
+      # them.
+      ld_shlibs=no
+      ;;
+    beos*)
+      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+    cygwin* | mingw* | pw32*)
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      hardcode_libdir_flag_spec='-L$libdir'
+      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+    interix3*)
+      hardcode_direct=no
+      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+      ;;
+    linux*)
+      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+    netbsd*)
+      ;;
+    solaris*)
+      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+        ld_shlibs=no
+      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+      case `$LD -v 2>&1` in
+        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
+          ld_shlibs=no
+          ;;
+        *)
+          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo \
${wl}-rpath,$libdir`' +          else
+            ld_shlibs=no
+          fi
+          ;;
+      esac
+      ;;
+    sunos4*)
+      hardcode_direct=yes
+      ;;
+    *)
+      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+  esac
+  if test "$ld_shlibs" = no; then
+    hardcode_libdir_flag_spec=
+  fi
+else
+  case "$host_os" in
+    aix3*)
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      hardcode_minus_L=yes
+      if test "$GCC" = yes; then
+        # Neither direct hardcoding nor static linking is supported with a
+        # broken collect2.
+        hardcode_direct=unsupported
+      fi
+      ;;
+    aix4* | aix5*)
+      if test "$host_cpu" = ia64; then
+        # On IA64, the linker does run time linking by default, so we don't
+        # have to do anything special.
+        aix_use_runtimelinking=no
+      else
+        aix_use_runtimelinking=no
+        # Test if we are trying to use run time linking or normal
+        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+        # need to do runtime linking.
+        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+          for ld_flag in $LDFLAGS; do
+            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+              aix_use_runtimelinking=yes
+              break
+            fi
+          done
+          ;;
+        esac
+      fi
+      hardcode_direct=yes
+      hardcode_libdir_separator=':'
+      if test "$GCC" = yes; then
+        case $host_os in aix4.[012]|aix4.[012].*)
+          collect2name=`${CC} -print-prog-name=collect2`
+          if test -f "$collect2name" && \
+            strings "$collect2name" | grep resolve_lib_name >/dev/null
+          then
+            # We have reworked collect2
+            hardcode_direct=yes
+          else
+            # We have old collect2
+            hardcode_direct=unsupported
+            hardcode_minus_L=yes
+            hardcode_libdir_flag_spec='-L$libdir'
+            hardcode_libdir_separator=
+          fi
+          ;;
+        esac
+      fi
+      # Begin _LT_AC_SYS_LIBPATH_AIX.
+      echo 'int main () { return 0; }' > conftest.c
+      ${CC} ${LDFLAGS} conftest.c -o conftest
+      aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File \
Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } +}'`
+      if test -z "$aix_libpath"; then
+        aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File \
Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } +}'`
+      fi
+      if test -z "$aix_libpath"; then
+        aix_libpath="/usr/lib:/lib"
+      fi
+      rm -f conftest.c conftest
+      # End _LT_AC_SYS_LIBPATH_AIX.
+      if test "$aix_use_runtimelinking" = yes; then
+        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+      else
+        if test "$host_cpu" = ia64; then
+          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+        else
+          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+        fi
+      fi
+      ;;
+    amigaos*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      # see comment about different semantics on the GNU ld section
+      ld_shlibs=no
+      ;;
+    bsdi[45]*)
+      ;;
+    cygwin* | mingw* | pw32*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      hardcode_libdir_flag_spec=' '
+      libext=lib
+      ;;
+    darwin* | rhapsody*)
+      hardcode_direct=no
+      if test "$GCC" = yes ; then
+        :
+      else
+        case $cc_basename in
+          xlc*)
+            ;;
+          *)
+            ld_shlibs=no
+            ;;
+        esac
+      fi
+      ;;
+    dgux*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      ;;
+    freebsd1*)
+      ld_shlibs=no
+      ;;
+    freebsd2.2*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      ;;
+    freebsd2*)
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      ;;
+    freebsd* | kfreebsd*-gnu | dragonfly*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      ;;
+    hpux9*)
+      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+      hardcode_libdir_separator=:
+      hardcode_direct=yes
+      # hardcode_minus_L: Not really in the search PATH,
+      # but as the default location of the library.
+      hardcode_minus_L=yes
+      ;;
+    hpux10*)
+      if test "$with_gnu_ld" = no; then
+        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+        hardcode_libdir_separator=:
+        hardcode_direct=yes
+        # hardcode_minus_L: Not really in the search PATH,
+        # but as the default location of the library.
+        hardcode_minus_L=yes
+      fi
+      ;;
+    hpux11*)
+      if test "$with_gnu_ld" = no; then
+        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+        hardcode_libdir_separator=:
+        case $host_cpu in
+          hppa*64*|ia64*)
+            hardcode_direct=no
+            ;;
+          *)
+            hardcode_direct=yes
+            # hardcode_minus_L: Not really in the search PATH,
+            # but as the default location of the library.
+            hardcode_minus_L=yes
+            ;;
+        esac
+      fi
+      ;;
+    irix5* | irix6* | nonstopux*)
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      ;;
+    netbsd*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      ;;
+    newsos6)
+      hardcode_direct=yes
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      ;;
+    openbsd*)
+      hardcode_direct=yes
+      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test \
"$host_os-$host_cpu" = "openbsd2.8-powerpc"; then +        \
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' +      else
+        case "$host_os" in
+          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+            hardcode_libdir_flag_spec='-R$libdir'
+            ;;
+          *)
+            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+            ;;
+        esac
+      fi
+      ;;
+    os2*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      ;;
+    osf3*)
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      ;;
+    osf4* | osf5*)
+      if test "$GCC" = yes; then
+        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      else
+        # Both cc and cxx compiler support -rpath directly
+        hardcode_libdir_flag_spec='-rpath $libdir'
+      fi
+      hardcode_libdir_separator=:
+      ;;
+    solaris*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      ;;
+    sunos4*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      ;;
+    sysv4)
+      case $host_vendor in
+        sni)
+          hardcode_direct=yes # is this really true???
+          ;;
+        siemens)
+          hardcode_direct=no
+          ;;
+        motorola)
+          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+          ;;
+      esac
+      ;;
+    sysv4.3*)
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        ld_shlibs=yes
+      fi
+      ;;
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
+      ;;
+    sysv5* | sco3.2v5* | sco5v6*)
+      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
+      hardcode_libdir_separator=':'
+      ;;
+    uts4*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      ;;
+    *)
+      ld_shlibs=no
+      ;;
+  esac
+fi
+
+# Check dynamic linker characteristics
+# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
+libname_spec='lib$name'
+case "$host_os" in
+  aix3*)
+    ;;
+  aix4* | aix5*)
+    ;;
+  amigaos*)
+    ;;
+  beos*)
+    ;;
+  bsdi[45]*)
+    ;;
+  cygwin* | mingw* | pw32*)
+    shrext=.dll
+    ;;
+  darwin* | rhapsody*)
+    shrext=.dylib
+    ;;
+  dgux*)
+    ;;
+  freebsd1*)
+    ;;
+  kfreebsd*-gnu)
+    ;;
+  freebsd* | dragonfly*)
+    ;;
+  gnu*)
+    ;;
+  hpux9* | hpux10* | hpux11*)
+    case $host_cpu in
+      ia64*)
+        shrext=.so
+        ;;
+      hppa*64*)
+        shrext=.sl
+        ;;
+      *)
+        shrext=.sl
+        ;;
+    esac
+    ;;
+  interix3*)
+    ;;
+  irix5* | irix6* | nonstopux*)
+    case "$host_os" in
+      irix5* | nonstopux*)
+        libsuff= shlibsuff=
+        ;;
+      *)
+        case $LD in
+          *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
+          *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 \
shlibsuff=N32 ;; +          *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 \
shlibsuff=64 ;; +          *) libsuff= shlibsuff= ;;
+        esac
+        ;;
+    esac
+    ;;
+  linux*oldld* | linux*aout* | linux*coff*)
+    ;;
+  linux*)
+    ;;
+  knetbsd*-gnu)
+    ;;
+  netbsd*)
+    ;;
+  newsos6)
+    ;;
+  nto-qnx*)
+    ;;
+  openbsd*)
+    ;;
+  os2*)
+    libname_spec='$name'
+    shrext=.dll
+    ;;
+  osf3* | osf4* | osf5*)
+    ;;
+  solaris*)
+    ;;
+  sunos4*)
+    ;;
+  sysv4 | sysv4.3*)
+    ;;
+  sysv4*MP*)
+    ;;
+  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+    ;;
+  uts4*)
+    ;;
+esac
+
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
+escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
+shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
+escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e \
's/^X//' -e "$sed_quote_subst"` +
+LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
+
+# How to pass a linker flag through the compiler.
+wl="$escaped_wl"
+
+# Static library suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally "so").
+shlibext="$shlibext"
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator="$hardcode_libdir_separator"
+
+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct="$hardcode_direct"
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L="$hardcode_minus_L"
+
+EOF
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..eb189e3
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,50 @@
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.61)
+AC_INIT(pdk, 0.45, mamano@miraclelinux.com)
+AM_INIT_AUTOMAKE
+
+# Checks for programs.
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+
+# Checks for header files.
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+
+# Internationalization support.
+IT_PROG_INTLTOOL([0.35.0])
+
+GETTEXT_PACKAGE=moblin-image-creator
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
+                   [The domain to use with gettext])
+#AM_PATH_PYTHON([2.5.2])
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.16.1])
+
+PROGRAMNAME_LOCALEDIR=[${datadir}/locale]
+AC_SUBST(PROGRAMNAME_LOCALEDIR)
+
+AC_CONFIG_FILES([Makefile po/Makefile.in
+                 default_config/Makefile
+                 gui/Makefile
+                 help/Makefile
+                 libs/Makefile
+                 utils/Makefile
+                 platforms/Makefile
+                 platforms/mccaslin-lpia-fedora/Makefile
+                 platforms/mccaslin-lpia-ubuntu-hardy-ppa-snapshot/Makefile
+                 platforms/mccaslin-lpia-ubuntu-hardy-ppa/Makefile
+                 platforms/mccaslin-lpia-ubuntu-hardy/Makefile
+                 platforms/mccaslin-lpia/Makefile
+                 platforms/menlow-lpia-ubuntu-hardy-ppa-snapshot/Makefile
+                 platforms/menlow-lpia-ubuntu-hardy-ppa/Makefile
+                 platforms/menlow-lpia-ubuntu-hardy/Makefile
+                 platforms/menlow-lpia/Makefile])
+AC_OUTPUT
diff --git a/debian/changelog b/debian/changelog
index a238d26..a209723 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,9 +44,12 @@ moblin-image-creator (0.45) UNRELEASED; urgency=low
     ppa platforms
   * Adding command line options to show packages for a given fset
   * Adding command line options to show sources files
-  * Make file creates projects dir in /usr/share/pdk. Moving it to \
/var/lib/moblin-image-creator  +  * Make file creates projects dir in /usr/share/pdk. \
Moving it to /var/lib/moblin-image-creator  
- -- Prajwal Mohan <prajwal@linux.intel.com>  Tue, 27 May 2008 15:30:14 -0700
+  [ Mitsutaka Amano ]
+  * Supported autotools for preparing the internationalization.
+
+ -- Prajwal Mohan <prajwal@linux.intel.com>  Wed, 28 May 2008 22:29:09 +0900
 
 moblin-image-creator (0.44) gaston; urgency=low
 
diff --git a/debian/rules b/debian/rules
index 6e62b10..552db38 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,13 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-build: build-stamp
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	./autogen.sh
+	./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
 
+build: configure-stamp build-stamp
 build-stamp:
 	dh_testdir
 	$(MAKE)
@@ -12,15 +17,15 @@ clean:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp
-	$(MAKE) clean
 	dh_clean
 
-install: build
+install: configure-stamp build-stamp install-stamp
+install-stamp:
 	dh_testdir
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-	$(MAKE) DESTDIR=$(CURDIR)/debian/moblin-image-creator basicinstall
+	$(MAKE) DESTDIR=$(CURDIR)/debian/moblin-image-creator install
 	rm -fR $(CURDIR)/debian/moblin-image-creator/usr/lib/
 
 binary-indep: build install
diff --git a/default_config/Makefile.am b/default_config/Makefile.am
new file mode 100644
index 0000000..b5ddbea
--- /dev/null
+++ b/default_config/Makefile.am
@@ -0,0 +1,3 @@
+default_configdir = ${pkgdatadir}/default_config
+default_config_DATA = \
+	defaults.cfg
diff --git a/gui/Makefile.am b/gui/Makefile.am
new file mode 100644
index 0000000..e36cdb4
--- /dev/null
+++ b/gui/Makefile.am
@@ -0,0 +1,26 @@
+python_scriptdir = ${pkgdatadir}/lib
+python_script_DATA = \
+	gui.py \
+	project_assistant.py
+
+gladedir = ${pkgdatadir}
+glade_DATA = \
+	image-creator.glade
+
+pngdir = ${pkgdatadir}
+png_DATA = \
+	add.png \
+	delete.png \
+	gnome-terminal.png
+
+extradir = ${pkgdatadir}
+extra_DATA = \
+	newFeature
+
+pixmapsdir = ${pkgdatadir}
+pixmaps_DATA = \
+	pixmaps/README \
+	pixmaps/image-creator-32x32.xcf \
+	pixmaps/image-creator-32x32.xpm \
+	pixmaps/mic-assistant.xcf \
+	pixmaps/mic-assistant.xpm
diff --git a/help/Makefile.am b/help/Makefile.am
new file mode 100644
index 0000000..87b0e5e
--- /dev/null
+++ b/help/Makefile.am
@@ -0,0 +1,4 @@
+helpdir = ${pkgdatadir}/gnome/help/image-creator/C
+help_DATA = \
+	C/image-creator.xml \
+	C/legal.xml
diff --git a/libs/Makefile.am b/libs/Makefile.am
new file mode 100644
index 0000000..e4d5956
--- /dev/null
+++ b/libs/Makefile.am
@@ -0,0 +1,15 @@
+python_scriptdir = ${pkgdatadir}/lib
+python_script_SCRIPTS = \
+	InstallImage.py \
+	Platform.py \
+	Project.py \
+	SDK.py \
+	fsets.py \
+	mic_cfg.py \
+	pdk_utils.py
+
+python_script_DATA = \
+	moblin_apt.py \
+	moblin_pkg.py \
+	moblin_pkgbase.py \
+	moblin_yum.py
diff --git a/m4/.empty b/m4/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/platforms/Makefile b/platforms/Makefile
deleted file mode 100644
index 1f55760..0000000
--- a/platforms/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/
-DIRS = $(shell find -maxdepth 1 -type d | grep "..$*" | grep -v /common)
-
-all:
-	echo ${DIRS}
-	@for i in ${DIRS}; do make -C $$i; done
-
-install:
-	@mkdir -p ${SHARE}/debootstrap-scripts
-	@cp common-apt/debootstrap-scripts/* ${SHARE}/debootstrap-scripts/
-	@for i in ${DIRS}; do make -C $$i install; done
-	@cp -a platforms.cfg ${PLATFORM_DIR}/
-
-clean:
-	@for i in ${DIRS}; do make -C $$i clean; done
diff --git a/platforms/Makefile.am b/platforms/Makefile.am
new file mode 100644
index 0000000..bbe52d7
--- /dev/null
+++ b/platforms/Makefile.am
@@ -0,0 +1,19 @@
+SUBDIRS = \
+	mccaslin-lpia \
+	mccaslin-lpia-fedora \
+	mccaslin-lpia-ubuntu-hardy \
+	mccaslin-lpia-ubuntu-hardy-ppa \
+	mccaslin-lpia-ubuntu-hardy-ppa-snapshot \
+	menlow-lpia \
+	menlow-lpia-ubuntu-hardy \
+	menlow-lpia-ubuntu-hardy-ppa \
+	menlow-lpia-ubuntu-hardy-ppa-snapshot
+
+debootstrap_scriptdir = ${pkgdatadir}/debootstrap-scripts
+debootstrap_script_DATA = \
+	common-apt/debootstrap-scripts/gutsy \
+	common-apt/debootstrap-scripts/hardy
+
+platforms_cfgdir = ${pkgdatadir}/platforms
+platforms_cfg_DATA = \
+	platforms.cfg
diff --git a/platforms/mccaslin-lpia-fedora/Makefile \
b/platforms/mccaslin-lpia-fedora/Makefile deleted file mode 100644
index 39879cd..0000000
--- a/platforms/mccaslin-lpia-fedora/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-TMPDIR = /tmp/.tmpbuilddir
-PNAME = mccaslin-lpia-fedora
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/yum.repos.d
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-
-# Platform specific code.
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-	@cp yum.repos.d/* ${PLATFORM_DIR}/yum.repos.d/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
diff --git a/platforms/mccaslin-lpia-fedora/Makefile.am \
b/platforms/mccaslin-lpia-fedora/Makefile.am new file mode 100644
index 0000000..7ab99f9
--- /dev/null
+++ b/platforms/mccaslin-lpia-fedora/Makefile.am
@@ -0,0 +1,12 @@
+PNAME = mccaslin-lpia-fedora
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+yumreposdir = ${pkgdatadir}/platforms/${PNAME}/yum.repos.d
+yumrepos_DATA = \
+	yum.repos.d/fedora-development.repo \
+	yum.repos.d/fedora-updates-testing.repo \
+	yum.repos.d/fedora-updates.repo \
+	yum.repos.d/fedora.repo
diff --git a/platforms/mccaslin-lpia-ubuntu-hardy-ppa-snapshot/Makefile \
b/platforms/mccaslin-lpia-ubuntu-hardy-ppa-snapshot/Makefile deleted file mode 100644
index ec30513..0000000
--- a/platforms/mccaslin-lpia-ubuntu-hardy-ppa-snapshot/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-TMPDIR = /tmp/.tmpbuilddir
-PNAME = mccaslin-lpia-ubuntu-hardy-ppa-snapshot
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/mccaslin-lpia-ubuntu-hardy-ppa-snapshot/Makefile.am \
b/platforms/mccaslin-lpia-ubuntu-hardy-ppa-snapshot/Makefile.am new file mode 100644
index 0000000..62fc2ec
--- /dev/null
+++ b/platforms/mccaslin-lpia-ubuntu-hardy-ppa-snapshot/Makefile.am
@@ -0,0 +1,35 @@
+PNAME = mccaslin-lpia-ubuntu-hardy-ppa-snapshot
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/hardy.list \
+	sources/ubuntu-hardy-src.list \
+	sources/um-ppa-hardy.list
diff --git a/platforms/mccaslin-lpia-ubuntu-hardy-ppa/Makefile \
b/platforms/mccaslin-lpia-ubuntu-hardy-ppa/Makefile deleted file mode 100644
index b973f71..0000000
--- a/platforms/mccaslin-lpia-ubuntu-hardy-ppa/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-TMPDIR = /tmp/.tmpbuilddir
-PNAME = mccaslin-lpia-ubuntu-hardy-ppa
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/mccaslin-lpia-ubuntu-hardy-ppa/Makefile.am \
b/platforms/mccaslin-lpia-ubuntu-hardy-ppa/Makefile.am new file mode 100644
index 0000000..1169770
--- /dev/null
+++ b/platforms/mccaslin-lpia-ubuntu-hardy-ppa/Makefile.am
@@ -0,0 +1,35 @@
+PNAME = mccaslin-lpia-ubuntu-hardy-ppa
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/hardy.list \
+	sources/ubuntu-hardy-src.list \
+	sources/um-ppa-hardy.list
diff --git a/platforms/mccaslin-lpia-ubuntu-hardy/Makefile \
b/platforms/mccaslin-lpia-ubuntu-hardy/Makefile deleted file mode 100644
index 7b5e207..0000000
--- a/platforms/mccaslin-lpia-ubuntu-hardy/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-TMPDIR = /tmp/.tmpbuilddir
-PNAME = mccaslin-lpia-ubuntu-hardy
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/mccaslin-lpia-ubuntu-hardy/Makefile.am \
b/platforms/mccaslin-lpia-ubuntu-hardy/Makefile.am new file mode 100644
index 0000000..a3a0f87
--- /dev/null
+++ b/platforms/mccaslin-lpia-ubuntu-hardy/Makefile.am
@@ -0,0 +1,33 @@
+PNAME = mccaslin-lpia-ubuntu-hardy
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/ubuntu-hardy-src.list
diff --git a/platforms/mccaslin-lpia/Makefile b/platforms/mccaslin-lpia/Makefile
deleted file mode 100644
index 4c49ca7..0000000
--- a/platforms/mccaslin-lpia/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-TMPDIR = /tmp/.tmpbuilddir
-PNAME = mccaslin-lpia
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/mccaslin-lpia/Makefile.am \
b/platforms/mccaslin-lpia/Makefile.am new file mode 100644
index 0000000..8a7fb89
--- /dev/null
+++ b/platforms/mccaslin-lpia/Makefile.am
@@ -0,0 +1,34 @@
+PNAME = mccaslin-lpia
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/moblin.org.list \
+	sources/ubuntu-gutsy-src.list
diff --git a/platforms/menlow-lpia-ubuntu-hardy-ppa-snapshot/Makefile \
b/platforms/menlow-lpia-ubuntu-hardy-ppa-snapshot/Makefile deleted file mode 100644
index 1a82c66..0000000
--- a/platforms/menlow-lpia-ubuntu-hardy-ppa-snapshot/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-PNAME = menlow-lpia-ubuntu-hardy-ppa-snapshot
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/menlow-lpia-ubuntu-hardy-ppa-snapshot/Makefile.am \
b/platforms/menlow-lpia-ubuntu-hardy-ppa-snapshot/Makefile.am new file mode 100644
index 0000000..b18a45e
--- /dev/null
+++ b/platforms/menlow-lpia-ubuntu-hardy-ppa-snapshot/Makefile.am
@@ -0,0 +1,35 @@
+PNAME = menlow-lpia-ubuntu-hardy-ppa-snapshot
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/hardy.list \
+	sources/ubuntu-hardy-src.list \
+	sources/um-ppa-hardy.list
diff --git a/platforms/menlow-lpia-ubuntu-hardy-ppa/Makefile \
b/platforms/menlow-lpia-ubuntu-hardy-ppa/Makefile deleted file mode 100644
index 27beb3f..0000000
--- a/platforms/menlow-lpia-ubuntu-hardy-ppa/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-PNAME = menlow-lpia-ubuntu-hardy-ppa
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/menlow-lpia-ubuntu-hardy-ppa/Makefile.am \
b/platforms/menlow-lpia-ubuntu-hardy-ppa/Makefile.am new file mode 100644
index 0000000..478bd07
--- /dev/null
+++ b/platforms/menlow-lpia-ubuntu-hardy-ppa/Makefile.am
@@ -0,0 +1,35 @@
+PNAME = menlow-lpia-ubuntu-hardy-ppa
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/hardy.list \
+	sources/ubuntu-hardy-src.list \
+	sources/um-ppa-hardy.list
diff --git a/platforms/menlow-lpia-ubuntu-hardy/Makefile \
b/platforms/menlow-lpia-ubuntu-hardy/Makefile deleted file mode 100644
index 553d687..0000000
--- a/platforms/menlow-lpia-ubuntu-hardy/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-PNAME = menlow-lpia-ubuntu-hardy
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/menlow-lpia-ubuntu-hardy/Makefile.am \
b/platforms/menlow-lpia-ubuntu-hardy/Makefile.am new file mode 100644
index 0000000..e109fe2
--- /dev/null
+++ b/platforms/menlow-lpia-ubuntu-hardy/Makefile.am
@@ -0,0 +1,33 @@
+PNAME = menlow-lpia-ubuntu-hardy
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/ubuntu-hardy-src.list
diff --git a/platforms/menlow-lpia/Makefile b/platforms/menlow-lpia/Makefile
deleted file mode 100644
index cadf159..0000000
--- a/platforms/menlow-lpia/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-PNAME = menlow-lpia
-SHARE = ${DESTDIR}/usr/share/pdk
-PLATFORM_DIR = ${SHARE}/platforms/${PNAME}
-
-all:
-
-install:
-	@mkdir -p ${PLATFORM_DIR}
-	@mkdir -p ${PLATFORM_DIR}/fsets
-	@mkdir -p ${PLATFORM_DIR}/initramfs/scripts
-# Install common code to the platform first, so if we have platform
-# specific code it will get overwritten.
-	@cp -a ../common-apt/initramfs ${PLATFORM_DIR}/
-	@cp ../common-apt/exclude ${PLATFORM_DIR}/
-	@cp ../common-apt/install.sh ${PLATFORM_DIR}/
-# Platform specific code.
-	@cp -a sources ${PLATFORM_DIR}/
-	@cp -a initramfs ${PLATFORM_DIR}/
-	@cp fsets/*.fset ${PLATFORM_DIR}/fsets/
-clean:
-	rm -f *.tar.bz2 *~ package-build-stamp
-
diff --git a/platforms/menlow-lpia/Makefile.am b/platforms/menlow-lpia/Makefile.am
new file mode 100644
index 0000000..ceb2962
--- /dev/null
+++ b/platforms/menlow-lpia/Makefile.am
@@ -0,0 +1,34 @@
+PNAME = menlow-lpia
+
+fsetsdir = ${pkgdatadir}/platforms/${PNAME}/fsets
+fsets_DATA = \
+	fsets/base.fset
+
+platformdir = ${pkgdatadir}/platforms/${PNAME}
+platform_DATA = \
+	../common-apt/exclude \
+	../common-apt/install.sh
+
+initramfsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs
+initramfs_SCRIPTS = \
+	../common-apt/initramfs/cd \
+	../common-apt/initramfs/disk \
+	../common-apt/initramfs/usb
+
+initramfs_DATA = \
+	initramfs/initramfs.conf \
+	initramfs/modules \
+	initramfs/usplash.conf
+
+initramfs_hooksdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/hooks
+initramfs_hooks_SCRIPTS = \
+	../common-apt/initramfs/hooks/mobile
+
+initramfs_scriptsdir = ${pkgdatadir}/platforms/${PNAME}/initramfs/scripts
+initramfs_scripts_DATA = \
+	../common-apt/initramfs/scripts/.empty
+
+sourcesdir = ${pkgdatadir}/platforms/${PNAME}/sources
+sources_DATA = \
+	sources/moblin.org.list \
+	sources/ubuntu-gutsy-src.list
diff --git a/po/ChangeLog b/po/ChangeLog
new file mode 100644
index 0000000..f969487
--- /dev/null
+++ b/po/ChangeLog
@@ -0,0 +1,12 @@
+2008-05-28  gettextize  <bug-gnu-gettext@gnu.org>
+
+	* Makefile.in.in: New file, from gettext-0.16.1.
+	* Rules-quot: New file, from gettext-0.16.1.
+	* boldquot.sed: New file, from gettext-0.16.1.
+	* en@boldquot.header: New file, from gettext-0.16.1.
+	* en@quot.header: New file, from gettext-0.16.1.
+	* insert-header.sin: New file, from gettext-0.16.1.
+	* quot.sed: New file, from gettext-0.16.1.
+	* remove-potcdate.sin: New file, from gettext-0.16.1.
+	* POTFILES.in: New file.
+
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
new file mode 120000
index 0000000..e4713cf
--- /dev/null
+++ b/po/Makefile.in.in
@@ -0,0 +1 @@
+/usr/share/intltool/Makefile.in.in
\ No newline at end of file
diff --git a/po/Makevars.template b/po/Makevars.template
new file mode 100644
index 0000000..32692ab
--- /dev/null
+++ b/po/Makevars.template
@@ -0,0 +1,41 @@
+# Makefile variables for PO directory in any package using GNU gettext.
+
+# Usually the message domain is the same as the package name.
+DOMAIN = $(PACKAGE)
+
+# These two variables depend on the location of this directory.
+subdir = po
+top_builddir = ..
+
+# These options get passed to xgettext.
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
+
+# This is the copyright holder that gets inserted into the header of the
+# $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
+# package.  (Note that the msgstr strings, extracted from the package's
+# sources, belong to the copyright holder of the package.)  Translators are
+# expected to transfer the copyright for their translations to this person
+# or entity, or to disclaim their copyright.  The empty string stands for
+# the public domain; in this case the translators are expected to disclaim
+# their copyright.
+COPYRIGHT_HOLDER = Free Software Foundation, Inc.
+
+# This is the email address or URL to which the translators shall report
+# bugs in the untranslated strings:
+# - Strings which are not entire sentences, see the maintainer guidelines
+#   in the GNU gettext documentation, section 'Preparing Strings'.
+# - Strings which use unclear terms or require additional context to be
+#   understood.
+# - Strings which make invalid assumptions about notation of date, time or
+#   money.
+# - Pluralisation problems.
+# - Incorrect English spelling.
+# - Incorrect formatting.
+# It can be your email address, or a mailing list address where translators
+# can write to without being subscribed, or the URL of a web page through
+# which the translators can contact you.
+MSGID_BUGS_ADDRESS =
+
+# This is the list of locale categories, beyond LC_MESSAGES, for which the
+# message catalogs shall be used.  It is usually empty.
+EXTRA_LOCALE_CATEGORIES =
diff --git a/po/POTFILES b/po/POTFILES
new file mode 100644
index 0000000..e69de29
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..667e27c
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1 @@
+# List of source files which contain translatable strings.
diff --git a/po/Rules-quot b/po/Rules-quot
new file mode 100644
index 0000000..9c2a995
--- /dev/null
+++ b/po/Rules-quot
@@ -0,0 +1,47 @@
+# Special Makefile rules for English message catalogs with quotation marks.
+
+DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header \
insert-header.sin Rules-quot +
+.SUFFIXES: .insert-header .po-update-en
+
+en@quot.po-create:
+	$(MAKE) en@quot.po-update
+en@boldquot.po-create:
+	$(MAKE) en@boldquot.po-update
+
+en@quot.po-update: en@quot.po-update-en
+en@boldquot.po-update: en@boldquot.po-update-en
+
+.insert-header.po-update-en:
+	@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
+	if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd \
$(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ +	tmpdir=`pwd`; \
+	echo "$$lang:"; \
+	ll=`echo $$lang | sed -e 's/@.*//'`; \
+	LC_ALL=C; export LC_ALL; \
+	cd $(srcdir); \
+	if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f \
$$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo \
$$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ +	  if \
cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ +	    rm -f \
$$tmpdir/$$lang.new.po; \ +	  else \
+	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
+	      :; \
+	    else \
+	      echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to \
$$lang.po" 1>&2; \ +	      exit 1; \
+	    fi; \
+	  fi; \
+	else \
+	  echo "creation of $$lang.po failed!" 1>&2; \
+	  rm -f $$tmpdir/$$lang.new.po; \
+	fi
+
+en@quot.insert-header: insert-header.sin
+	sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > \
en@quot.insert-header +
+en@boldquot.insert-header: insert-header.sin
+	sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > \
en@boldquot.insert-header +
+mostlyclean: mostlyclean-quot
+mostlyclean-quot:
+	rm -f *.insert-header
diff --git a/po/boldquot.sed b/po/boldquot.sed
new file mode 100644
index 0000000..4b937aa
--- /dev/null
+++ b/po/boldquot.sed
@@ -0,0 +1,10 @@
+s/"\([^"]*\)"/"\1"/g
+s/`\([^`']*\)'/‘\1'/g
+s/ '\([^`']*\)' / ‘\1' /g
+s/ '\([^`']*\)'$/ ‘\1'/g
+s/^'\([^`']*\)' /‘\1' /g
+s/""/""/g
+s/"/"/g
+s/"/"/g
+s/‘/‘/g
+s/'/'/g
diff --git a/po/en@boldquot.header b/po/en@boldquot.header
new file mode 100644
index 0000000..fedb6a0
--- /dev/null
+++ b/po/en@boldquot.header
@@ -0,0 +1,25 @@
+# All this catalog "translates" are quotation characters.
+# The msgids must be ASCII and therefore cannot contain real quotation
+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
+# and double quote (0x22). These substitutes look strange; see
+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
+#
+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
+# It also translates pairs of apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
+# and pairs of quotation mark (0x22) to
+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
+#
+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
+# When output to an ISO-8859-1 terminal, the single quotation marks are
+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
+# grave/acute accent (by libiconv), and the double quotation marks are
+# transliterated to 0x22.
+# When output to an ASCII terminal, the single quotation marks are
+# transliterated to apostrophes, and the double quotation marks are
+# transliterated to 0x22.
+#
+# This catalog furthermore displays the text between the quotation marks in
+# bold face, assuming the VT100/XTerm escape sequences.
+#
diff --git a/po/en@quot.header b/po/en@quot.header
new file mode 100644
index 0000000..a9647fc
--- /dev/null
+++ b/po/en@quot.header
@@ -0,0 +1,22 @@
+# All this catalog "translates" are quotation characters.
+# The msgids must be ASCII and therefore cannot contain real quotation
+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
+# and double quote (0x22). These substitutes look strange; see
+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
+#
+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
+# It also translates pairs of apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
+# and pairs of quotation mark (0x22) to
+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
+#
+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
+# When output to an ISO-8859-1 terminal, the single quotation marks are
+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
+# grave/acute accent (by libiconv), and the double quotation marks are
+# transliterated to 0x22.
+# When output to an ASCII terminal, the single quotation marks are
+# transliterated to apostrophes, and the double quotation marks are
+# transliterated to 0x22.
+#
diff --git a/po/insert-header.sin b/po/insert-header.sin
new file mode 100644
index 0000000..b26de01
--- /dev/null
+++ b/po/insert-header.sin
@@ -0,0 +1,23 @@
+# Sed script that inserts the file called HEADER before the header entry.
+#
+# At each occurrence of a line starting with "msgid ", we execute the following
+# commands. At the first occurrence, insert the file. At the following
+# occurrences, do nothing. The distinction between the first and the following
+# occurrences is achieved by looking at the hold space.
+/^msgid /{
+x
+# Test if the hold space is empty.
+s/m/m/
+ta
+# Yes it was empty. First occurrence. Read the file.
+r HEADER
+# Output the file's contents by reading the next line. But don't lose the
+# current line while doing this.
+g
+N
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}
diff --git a/po/quot.sed b/po/quot.sed
new file mode 100644
index 0000000..0122c46
--- /dev/null
+++ b/po/quot.sed
@@ -0,0 +1,6 @@
+s/"\([^"]*\)"/"\1"/g
+s/`\([^`']*\)'/‘\1'/g
+s/ '\([^`']*\)' / ‘\1' /g
+s/ '\([^`']*\)'$/ ‘\1'/g
+s/^'\([^`']*\)' /‘\1' /g
+s/""/""/g
diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin
new file mode 100644
index 0000000..2436c49
--- /dev/null
+++ b/po/remove-potcdate.sin
@@ -0,0 +1,19 @@
+# Sed script that remove the POT-Creation-Date line in the header entry
+# from a POT file.
+#
+# The distinction between the first and the following occurrences of the
+# pattern is achieved by looking at the hold space.
+/^"POT-Creation-Date: .*"$/{
+x
+# Test if the hold space is empty.
+s/P/P/
+ta
+# Yes it was empty. First occurrence. Remove the line.
+g
+d
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}
diff --git a/po/stamp-it b/po/stamp-it
new file mode 100644
index 0000000..e69de29
diff --git a/utils/Makefile.am b/utils/Makefile.am
new file mode 100644
index 0000000..c687c89
--- /dev/null
+++ b/utils/Makefile.am
@@ -0,0 +1,8 @@
+bash_completiondir = ${sysconfdir}/bash_completion.d
+bash_completion_DATA = \
+	image-creator-completion.bash
+
+python_scriptdir = ${pkgdatadir}/utils
+python_script_SCRIPTS = \
+	create-rootstrap.py \
+	jailroot-reset.py



_______________________________________________
dev mailing list
dev@moblin.org
https://www.moblin.org/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic