source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/tools/CreateDistFile.sh @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 803 bytes
Line 
1#!/bin/sh
2# sh script used by the top Makefile to create a tar file with the ESAF
3# distribution
4#
5# $Id: CreateDistFile.sh 2865 2011-03-10 14:00:46Z naumov $
6# 2002/01/23 D. De Marco - created
7#
8
9# Temporary File containing the name of the directory to be excluded
10# from distribution package
11TEF=/tmp/ESAF.CVS.Exclude
12
13# Directory containig the current distribution
14WD=$(basename $(pwd))
15
16# timestamp
17DATE=$(date +%Y-%m-%d_%H.%M)
18
19cd ..
20find $WD -type d -name CVS  >  $TEF
21find $WD -type d -name .svn >  $TEF
22
23echo ${WD}/bin          >> $TEF
24echo ${WD}/lib          >> $TEF
25echo ${WD}/output       >> $TEF
26# Other directories to be excluded go here
27
28tar cfv ESAF_${DATE}.tar -X $TEF $WD
29gzip ESAF_${DATE}.tar
30rm $TEF
31
32echo -e "\n\n\nDistribution package created in: `pwd`/ESAF_${DATE}.tar.gz\n\n\n" 
Note: See TracBrowser for help on using the repository browser.