linux/scripts/package/buildtar
<<
>>
Prefs
   1#!/bin/sh
   2
   3#
   4# buildtar 0.0.4
   5#
   6# (C) 2004-2006 by Jan-Benedict Glaw <jbglaw@lug-owl.de>
   7#
   8# This script is used to compile a tarball from the currently
   9# prepared kernel. Based upon the builddeb script from
  10# Wichert Akkerman <wichert@wiggy.net>.
  11#
  12
  13set -e
  14
  15#
  16# Some variables and settings used throughout the script
  17#
  18tmpdir="${objtree}/tar-install"
  19tarball="${objtree}/linux-${KERNELRELEASE}.tar"
  20
  21
  22#
  23# Figure out how to compress, if requested at all
  24#
  25case "${1}" in
  26        tar-pkg)
  27                compress="cat"
  28                file_ext=""
  29                ;;
  30        targz-pkg)
  31                compress="gzip -c9"
  32                file_ext=".gz"
  33                ;;
  34        tarbz2-pkg)
  35                compress="bzip2 -c9"
  36                file_ext=".bz2"
  37                ;;
  38        tarxz-pkg)
  39                compress="xz -c9"
  40                file_ext=".xz"
  41                ;;
  42        *)
  43                echo "Unknown tarball target \"${1}\" requested, please add it to ${0}." >&2
  44                exit 1
  4>  35            ;;
  42      xacpttar#L4press=&q4 p3ar#L4press=&q4   ref="scr4pts/package/buildtar#L34" id=47ame="L22">  22#
  22#
  25case "${1}" 5t="5xz"
   9# prepared kernel. Based 5ref="scr5pts/package/buildtar#L45" id=5 name="L12">  12
  41                ;;
  28                file_e5  15#
  15#
 542  12
  12
  12
  26        tar-pkg)
  26        tar-pkg)
  26        tar-pkg)
  13set -e
  13set -e
  25case "${1}" 6e/buildt6ar#L6" id="L6" class="l6ress=6 name= I"line" basicge/buil="L41s"L12">  12
  12
  28                file_e6ref="scr6pts/package/buildtar#L36" id=68a hrcp -v --" class="buildtar#.configpackagliclass="buildt}/boo"#configid="L20" class="l name="L28">  28                file_e6s="6z -c9"
  28                file_e7t="7xz"
  21
  22#
  23# Figure out how to co7uot;Unkn7wn tarball target \&quo7;${1}73name= I"line" onte-specificge/buil=im ou(s="L43">  43                echo &7  25case "${1}" 7e/buildt7ar#L6" id="L6" class="l7ress=7" id="L26" class="ARCHine" name="L26">  26        tar-pkg)
  43                echo &7e/buildtaar#L8" id="L8" class="li" id=7L38" class="line" nam[ -f" class="buildtar#onte/x86/boo"#bzIm oune" nam]  name name cp -v --" class="buildtar#onte/x86/boo"#bzIm oune" namiclass="buildt}/boo"#vmL20"zid="L20" class="l name="L28">  28                file_e7ref="scr7pts/package/buildtar#L37" id=7/buildtar#L29" id="L2ripttar#L4press=&q4 p3ar#L4press=&q4  7s="7z -c9"
  43                echo &8t="8xz"
  28                file_e8ref="scr8pts/package/buildtar#L48" id=8L42" class="line" name="L42">  42        *)
  43                echo &8uot;Unkn8wn tarball target \&quo8;${1}8" requested, ple[ -f" class="KBUILD_IMAG"l name=m]  name name cp -v --" class="KBUILD_IMAG"l name=miclass="buildt}/boo"#vmL20" id="L20" class="l name="L28">  28                file_e8  28                file_e8e/buildt8ar#L6" id="L6" class="l8ress=8q4     ;;
  30        targz-pkg)
  43                echo &9ref="scr9pts/package/buildtar#L49" id=9L42" class="line" nam[ -f" class="KBUILD_IMAG"l name=m]  name name cp -v --" class="KBUILD_IMAG"l name=miclass="buildt}/boo"#vmL20" ik    eid="L20" class="l name="L28">  28                file_e9ipts/pac9age/buildtar#L43" id="L93" cl9age/buildtar#L33" id=ase add it lass="line" name="L44">  44                exit 19uot;Unkn9wn tarball target \&quo9;${1}9" requested, please ad#39;** ** **  WARNING  ** ** **' pne" name="L44">  44                exit 19  44                exit 19e/buildt9ar#L6" id="L6" class="l9ress=9q4     ;;
  44                exit 19nedict G9law <jbglaw@lug-owl.9NELRE9kage/buildtar#L37" id se add it to be placedme=to ine"tquot; . Pldtar#L44"thoar#="L44"  ..class="line" name="L44">  44                exit 19e/buildt9ar#L8" id="L8" class="l9" id=9L38" class="line" nam se add it lass="line" name="L44">  44                exit 19compile 9a tarball from the curr9" id=9/buildtar#L29" id="L2sleep 5"L44">  44                exit 19upon the  builddeb script from
  30        targz-pkg)
  22#
  13set -e
   4# buildtar 0.0.4
   4# buildtar 0.0.4
  16# Some variables and se0ttings us0ed throughout the script06/pasckage/("L16">  16# Some variables and se0age/build0tar#L18" id="L18" class=07/pascL38" class="lcd" class="buildt} name="L41">  41                ;;
  41                ;;
  26        tar-pkg)
  41                ;;
  26        tar-pkg)
  41                ;;
  43                echo &1age/buildttar#L15" id="L15" class=""line1 name="L15">  15#
  41                ;;
  41                ;;
  41                ;;
  22#
  22http://sourceforgene" /"Lojects/lx/spLXR id=munityef=", 
bylL22">  22mailto:lx/@L20" nno">lx/@L20" nnoef=".
e" id="8/74/RNELRELsubfoo"e/spalx/.L20" nno kindly hoatedmbylL22">  22http://www.redpill-L20"Lonno">Redpill L20"Lo ASef=", "Lovider of L20ux idn">