"Fossies" - the Fresh Open Source Software Archive

Member "tmv-1.1.3/dist" (19 Jul 2005, 1149 Bytes) of package /linux/privat/old/tmv-1.1.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 #
    3 # copyright 2003-2005 Gene Pavlovsky <heilong@bluebottle.com>
    4 #
    5 # this is free software; you can redistribute it and/or modify
    6 # it under the terms of the GNU General Public License as published by
    7 # the Free Software Foundation; either version 2 of the License, or
    8 # (at your option) any later version.
    9 #
   10 # dist: tmv distribution generation script.
   11 
   12 # This function can perform any processing on the project's temporary mirror.
   13 # It's run in the temporary mirror's directory, so use relative paths for
   14 # accessing project's directories/files.
   15 project_local_process()
   16 {
   17   :
   18 }
   19 
   20 project_dir="$(dirname "$0")"
   21 project=$(grep '^project=' "$project_dir/install" | sed 's/^project=//')
   22 version=$(grep '^version=' "$project_dir/install" | sed 's/^version=//')
   23 rm -rf "/tmp/$project-$version"
   24 cp -a "$project_dir" "/tmp/$project-$version"
   25 (cd "/tmp/$project-$version"; project_local_process)
   26 tar -C /tmp -c "$project-$version" | gzip >"$project-$version.tar.gz"
   27 rm -rf "/tmp/$project-$version"
   28 md5sum "$project-$version.tar.gz" >"$project-$version.tar.gz.md5"
   29 gpg --output "$project-$version.tar.gz.sig" --detach-sign "$project-$version.tar.gz"