From: Eric D. <eri...@ja...> - 2001-03-15 19:17:13
|
I emailed Chris Nador because he was nice enough to post a reply on the www.slashcode.com site about problems updating Bender 1.1.6 via CVS. The first problem I had Chris seemed to solve. The latest problem in trying to update my Bender site from a CVS update looks something like this.... # Insure we use the proper perl interpreter and prefix in all scripts that # we install. Note the use of Perl as opposed to dirname(1) and basename(1) # which may or may not exist on any given system. (replacewith=`perl -MConfig -e 'print $Config{startperl}' | sed 's/@/\\@/g'`; binfiles=`find bin -name CVS -prune -o -type f -print`; sbinfiles=`find sbin -name CVS -prune -o -type f -print`; themefiles=`find themes -name CVS -prune -o -name \*.pl -print`; pluginfiles=`find plugins -name CVS -prune -o -name \*.pl -print`; if [ "$replacewith" != "#!/usr/bin/perl" ]; then replace=1; replacestr='(using perl)'; else replace=0; fi; for f in $binfiles $sbinfiles $themefiles $pluginfiles; do if [ $replace ]; then b=`echo $f | perl -MFile::Basename -e 'print basename(<STDIN>)'`; d=`echo $f | perl -MFile::Basename -e 'print dirname(<STDIN>)'`; perl -i.bak -pe "s@#!/usr/bin/perl@$replacewith@ if $. == 1" $f; fi; echo "Installing '$f' in /usr/local/slash/$d $replacestr"; install -d /usr/local/slash/$d; install $f /usr/local/slash/$d/$b; if [ -f "$f.bak" ]; then rm $f; mv $f.bak $f; fi; done) Installing 'bin/backup-blocks' in /usr/local/slash/bin rm: bin/backup-blocks: No such file or directory *** Error code 1 Stop in /usr/src/slash. Where bin/backup-blocks was installed into /usr/local/slash/bin correctly, but then it quits out.......... |