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"