Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 4th, 2010  |  syntax: Diff  |  size: 1.10 KB  |  hits: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -u A/PKGBUILD B/PKGBUILD
  2. --- A/PKGBUILD  2010-12-02 13:47:43.000000000 +0100
  3. +++ B/PKGBUILD  2010-12-05 00:10:21.000000000 +0100
  4. @@ -31,6 +31,11 @@
  5.  _builddir="$srcdir/build/"
  6.  _sourcedir="$srcdir/$_gitname/"
  7.  
  8. +# Save config as $startdir/config.saved
  9. +_save_config="1"
  10. +
  11. +_menu_method="${1}config"
  12. +
  13.  if [ "$_use_snapshot" = "y" ] && [ ! -d "$_sourcedir" ]; then
  14.         source+=(http://downloads.zen-kernel.org/snapshots/zen-stable/linux-2.6-zen.v2.6.36-zen0-full-git.tar.gz)
  15.         md5sums+=("2f8a8fe0ab79bf7cb2ebaff6d0a0b044")
  16. @@ -108,10 +113,22 @@
  17.                 return 1
  18.         fi
  19.  
  20. +       cd "$_builddir"
  21. +       case "$_menu_method" in
  22. +               menuconfig|xconfig|gconfig)
  23. +                       msg2 "Running make $_menu_method..."
  24. +                       make $_menu_method
  25. +       esac
  26. +
  27. +       if [ "$_save_config" = "1" ]; then
  28. +               msg "Saving configuration..."
  29. +               msg2 "Saving ${_builddir}.config as config.saved.$CARCH"
  30. +               cp .config ${startdir}/config.saved.$CARCH
  31. +       fi
  32. +
  33.         warning "Press ENTER if you want to build the kernel or CTRL+C to abort..."
  34.         read
  35.  
  36. -       cd "$_builddir"
  37.         msg2 "Building kernel..."; make bzImage
  38.         msg2 "Building modules..."; make modules
  39.  }