From a0baab6a9bbe6e76779927273f3faeba5b4d3990 Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 9 Mar 2002 17:19:16 +0000 Subject: -.-" git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@14 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/cpdeadbrd.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 util/cpdeadbrd.c diff --git a/util/cpdeadbrd.c b/util/cpdeadbrd.c deleted file mode 100644 index 12c5827e..00000000 --- a/util/cpdeadbrd.c +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include "config.h" -#include "pttstruct.h" -#include "util.h" - -extern int numboards; -extern boardheader_t *bcache; -int main(int argc, char* argv[]){ -struct stat st; -boardheader_t *bptr; - int n; - char pathname[1024]; - - resolve_boards(); - for (n=numboards-1;n>0;n--) - { - - bptr = &bcache[n]; - if(!strcmp(bptr->brdname,"ck53rd316"))continue; - sprintf(pathname,"/home/bbs/boards/%s/.DIR",bptr->brdname); - if(stat(pathname, &st) == -1) - { - printf("%s is dead\n",pathname); - sprintf (pathname,"cp -R /mnt/bbs/boards/%s /home/bbs/boards/%s",bptr->brdname,bptr->brdname); - } - } -} - - - - - - - -- cgit v1.2.3