This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-goldedplus/dist-gps.sh

55 lines
1.3 KiB
Bash
Raw Normal View History

2011-02-26 23:01:21 +00:00
#!/bin/bash
# $Id$
2005-11-06 14:05:27 +00:00
# Create a archives 'gps*.tar.bz2' and 'gps*.tb2' with all source tree
2011-02-26 23:01:21 +00:00
srcdatefile=srcdate.h
build=`sed -n 's/.*"\([[:digit:]]\{8\}\)".*/\1/p' $srcdatefile`
date="$build"
shortdate=${date/???/}
2005-11-26 01:29:49 +00:00
shortname=gps${shortdate}.tb2
2005-11-06 12:51:16 +00:00
name=gps115-${date}.tar.bz2
2006-02-18 14:08:47 +00:00
echo Build a Golded+ sources package: ${name} and ${shortname}
cd .. ; tar -jcf ${name} \
--exclude CVS \
--exclude golded+/golded3/mygolded.h \
--exclude golded+/goldlib/gall/obj \
--exclude golded+/obj \
--exclude golded+/lib \
--exclude golded+/bin/ged???* \
--exclude golded+/bin/gn???* \
--exclude golded+/bin/rddt???* \
--exclude golded+/Release \
--exclude golded+/Debug \
--exclude golded+/debian/golded+ \
--exclude golded+/windows/obj \
2005-10-09 08:49:12 +00:00
--exclude 'golded+/*.bat' \
--exclude 'golded+/*.BAT' \
--exclude 'golded+/*.cmd' \
--exclude 'golded+/*.CMD' \
--exclude 'mygolded.h' \
2005-10-24 14:24:12 +00:00
--exclude '.#*' \
--exclude 'cscope.out' \
2005-10-09 06:31:59 +00:00
--exclude '*.orig' \
--exclude 'bld*.inc' \
--exclude '*.diff' \
--exclude '*.tar.gz' \
--exclude '*.tgz' \
--exclude '*.tar.bz' \
--exclude '*.tbz' \
--exclude '*.tar.bz2' \
--exclude '*.tb2' \
--exclude '*.cpz' \
--exclude '*.rar' \
--exclude '*.zip' \
--exclude '*.7z' \
--exclude '*.exe' \
--exclude '*.a' \
--exclude '*.o' \
--exclude '**~' \
golded+
2005-11-06 12:51:16 +00:00
ln ${name} ${shortname} || cp ${name} ${shortname}