mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
3.4 KiB

  1. #!/bin/bash
  2. #
  3. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  4. #
  5. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  6. # Please add additional copyright information _after_ the line containing
  7. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  8. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  9. #
  10. # ROCK Linux: rock-src/scripts/Puzzle
  11. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  12. #
  13. # This program is free software; you can redistribute it and/or modify
  14. # it under the terms of the GNU General Public License as published by
  15. # the Free Software Foundation; either version 2 of the License, or
  16. # (at your option) any later version. A copy of the GNU General Public
  17. # License can be found at Documentation/COPYING.
  18. #
  19. # Many people helped and are helping developing ROCK Linux. Please
  20. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  21. # file for details.
  22. #
  23. # --- ROCK-COPYRIGHT-NOTE-END ---
  24. #
  25. # The following files get created:
  26. #
  27. # Documentation/FAQ
  28. # Documentation/LSM
  29. # download/INDEX
  30. #
  31. eval "`grep -A 10 '\[BEGIN\]' scripts/parse-config | grep -B 10 '\[END\]'`"
  32. rockver="`echo $rockver | sed 's,-DEV,,'`"
  33. echo "Creating Documentation/FAQ ..."
  34. #
  35. find architecture/. misc/. package/. target/. -name '*.faq[0-9][0-9]' | \
  36. sed 's,^.*\(..\)$,\1 &,' | sort | cut -f2 -d' ' | xargs cat > Documentation/FAQ
  37. echo "Creating Documentation/LSM ..."
  38. #
  39. cat > Documentation/LSM << EOF
  40. Begin3
  41. Title: ROCK Linux
  42. Version: $rockver
  43. Entered-date: `date`
  44. Description: ROCK Linux is a Linux distribution build kit designed for
  45. Linux Users and Administrators and to create custom distri-
  46. butions e.g. for embedded systems. ROCK Linux features a
  47. automated build system implemented in shell-scripts. This
  48. build system will also download the vanilla package sources
  49. from the internet, (cross-)compile them, build the
  50. package files and create a CD-ROM image.
  51. ROCK Linux is a small Linux Distribution, but is't not a "mini
  52. distribution". It comes with over 800 packages including X11
  53. and the KDE and GNOME Desktop.
  54. The ROCK Linux Homepage is http://www.rocklinux.org/.
  55. Keywords: Distribution Linux Admin
  56. Author: god@clifford.at (Clifford Wolf)
  57. Primary-site: gd.tuwien.ac.at opsys/linux/ROCK/
  58. Platforms: Alpha, PPC, SPARC, MIPS, ia64, x86, x86_64
  59. Copying-policy: GPL
  60. End
  61. EOF
  62. echo "Creating download/INDEX ..."
  63. mkdir -p download/
  64. { echo "# This directory contains the package sources. They don't come"
  65. echo "# with the rock-linux source distribution - so you need to download"
  66. echo "# them. Type './scripts/Help Download' for details." ; echo "#"
  67. { grep -H '^\[D\] ' package/*/*/*.desc | tr '\t' ' ' | tr -s ' ' |
  68. sed -e 's,^package/,download/,;'
  69. grep -H '^[X0-9]' target/*/download.txt | tr '\t' ' ' | tr -s ' ' |
  70. sed -e 's,^target/,download/,; s,:,:[D] ,;'
  71. grep -H '^[X0-9]' scripts/miscdown.txt | tr '\t' ' ' | tr -s ' ' |
  72. sed 's,^scripts/,download/misc/,; s,:,:[D] ,;'
  73. } | sed 's,^\(.*/\)[^/:]*:[^ ]* \([X0-9]*\) ,\2 \1,;' |
  74. tr ' ' '\t' | tr -s '\t' | sort -k2 |
  75. awk '$1 !~ /^XX*$/ { printf("%010.0f %-50s %s\n", $1, $2, $3); }
  76. $1 ~ /^XX*$/ { printf("XXXXXXXXXX %-50s %s\n", $2, $3); }'
  77. } > download/INDEX