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-gpc.sh

21 lines
506 B
Bash
Raw Normal View History

2011-02-26 23:01:21 +00:00
#!/bin/bash
# $Id$
# Create a archive 'gpc*.zip' with configuration files examples.
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-06 12:51:16 +00:00
shortname=../gpc${shortdate}.zip
2005-11-26 01:29:49 +00:00
name=../gpc115-${date}.zip
2005-11-06 12:51:16 +00:00
dir=cfgs
2006-02-18 14:08:47 +00:00
echo Build an archive with Golded+ configuration examples: ${name} and ${shortname}
if [ -f ${name} ] ; then rm $name ; fi
find ${dir} | grep -v CVS | zip -9 -@ -X ${name}
2010-03-14 18:44:24 +00:00
ln ${name} ${shortname} || cp ${name} ${shortname}