User: viteno
Date: 05/02/22 10:51:00
Added: xemacs-builds/viteno update-version.sh
Log:
Script, which updates the version script of betas, to be run on
sunsite.dk daily.
Revision Changes Path
1.1 XEmacs/xemacs-builds/viteno/update-version.sh
Index: update-version.sh
===================================================================
#!/usr/bin/bash
## Copyright (C) 2002, 2003 Steve Youngs
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
### Commentary:
#
# Just a tiny little script that updates 'xemacs_extra_name' in
# version.sh for XEmacs beta. It also runs `make-src-depends' and
# commits ./src/depend.
### Code:
# Add a time-stamp and underline it
D=$(date)
echo $D
echo $D | sed 's/./-/g'
CVS=/coll/local/bin/cvs
PERL=/coll/local/bin/perl
REPOSITORY=${HOME}/XEmacs/
SAFE=${HOME}/tools/safe
cd ${REPOSITORY}
$CVS -Q up -Pd
if [ $? -eq 0 ]; then
sed 's/xemacs_extra_name=.*/xemacs_extra_name="(+CVS-'"`date
+%Y%m%d`"')"/' \
version.sh | $SAFE version.sh
fi
$CVS -Q ci -m "Update xemacs_extra_name." ./version.sh
# Update src dependencies
cd ${REPOSITORY}/src
$PERL ./make-src-depend > ./depend
$CVS -Q ci -m "Update src depends" ./depend
# empty line at the end to separate entries
echo
exit 0
### update-version.sh ends here.
Show replies by date