[Nagiosplug-checkins] CVS: nagiosplug/tools update_coreutils,NONE,1.1
Ton Voon
tonvoon at users.sourceforge.net
Thu Nov 11 16:52:03 CET 2004
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/lib exit.h,NONE,1.1 exitfail.c,NONE,1.1 exitfail.h,NONE,1.1 full-read.h,NONE,1.1 onceonly.m4,NONE,1.1 unlocked-io.m4,NONE,1.1 xalloc.m4,NONE,1.1 xstrdup.c,NONE,1.1 Makefile.am,1.18,1.19 error.c,1.1,1.2 error.h,1.1,1.2 error.m4,1.1,1.2 fsusage.c,1.2,1.3 fsusage.h,1.1,1.2 fsusage.m4,1.2,1.3 getloadavg.c,1.1,1.2 getopt.c,1.1,1.2 getopt.h,1.1,1.2 getopt1.c,1.1,1.2 gettext.h,1.1,1.2 ls-mntd-fs.m4,1.4,1.5 malloc.c,1.1,1.2 mountlist.c,1.3,1.4 mountlist.h,1.1,1.2 realloc.c,1.1,1.2 snprintf.c,1.1,1.2 strtod.c,1.1,1.2 unlocked-io.h,1.1,1.2 xalloc.h,1.1,1.2 xmalloc.c,1.1,1.2
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/doc developer-guidelines.sgml,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/nagiosplug/nagiosplug/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4357/tools
Added Files:
update_coreutils
Log Message:
Tool to pull newer coreutil libs into nagiosplug's lib directory
--- NEW FILE ---
#!/bin/bash
# Quick script to copy coreutil files into Nagios area
# Pass $1 as top level of coreutils source dir
# Expects to be run in the lib directory
function die { echo $1; exit 1; }
function copy_if_newer { [[ $1 -nt $2 ]] && cp $1 $2; }
coreutils_dir=$1
[[ -z $coreutils_dir ]] && die "Please specify coreutils directory"
cwd=`pwd`
[[ ${cwd##*/} != "lib" ]] && die "Must be run in lib directory"
# Get list of files from EXTRA_DIST in Makefile.am
# Need \\\ because the perl needs \\ but one is escaped
files="`perl -ne '$a=1 if s/^EXTRA_DIST\s*=\s*|libnagiosplug_a_SOURCES\s*=\s*//; $a=0 if /^\s*$/; if ($a==1) {s/\\\//; print $_}' Makefile.am`"
for i in $files ; do
if [[ -e $coreutils_dir/lib/$i ]] ; then
copy_if_newer $coreutils_dir/lib/$i ./$i
elif [[ -e $coreutils_dir/m4/$i ]] ; then
copy_if_newer $coreutils_dir/m4/$i ./$i
else
echo "Not found: $i"
fi
done
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/lib exit.h,NONE,1.1 exitfail.c,NONE,1.1 exitfail.h,NONE,1.1 full-read.h,NONE,1.1 onceonly.m4,NONE,1.1 unlocked-io.m4,NONE,1.1 xalloc.m4,NONE,1.1 xstrdup.c,NONE,1.1 Makefile.am,1.18,1.19 error.c,1.1,1.2 error.h,1.1,1.2 error.m4,1.1,1.2 fsusage.c,1.2,1.3 fsusage.h,1.1,1.2 fsusage.m4,1.2,1.3 getloadavg.c,1.1,1.2 getopt.c,1.1,1.2 getopt.h,1.1,1.2 getopt1.c,1.1,1.2 gettext.h,1.1,1.2 ls-mntd-fs.m4,1.4,1.5 malloc.c,1.1,1.2 mountlist.c,1.3,1.4 mountlist.h,1.1,1.2 realloc.c,1.1,1.2 snprintf.c,1.1,1.2 strtod.c,1.1,1.2 unlocked-io.h,1.1,1.2 xalloc.h,1.1,1.2 xmalloc.c,1.1,1.2
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/doc developer-guidelines.sgml,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list