summaryrefslogtreecommitdiffstats
path: root/mbbsd/merge.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-26 11:22:03 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-26 11:22:03 +0800
commitdc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e (patch)
tree9df7aec9429c39daa71843b20b2fab4f70bb9fff /mbbsd/merge.c
parent51ef5e730e8c85838223598a004274132c4d04e8 (diff)
downloadpttbbs-dc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e.tar
pttbbs-dc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e.tar.gz
pttbbs-dc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e.tar.bz2
pttbbs-dc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e.tar.lz
pttbbs-dc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e.tar.xz
pttbbs-dc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e.tar.zst
pttbbs-dc9303ee4b5f1374c1ff39f2d5b6f79d7e85057e.zip
modify merge bbs for SOB's boards
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2281 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/merge.c')
-rw-r--r--mbbsd/merge.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/mbbsd/merge.c b/mbbsd/merge.c
index 9601bf1e..3423e91e 100644
--- a/mbbsd/merge.c
+++ b/mbbsd/merge.c
@@ -194,7 +194,7 @@ m_fpg()
}
void
-m_fpg_brd(char *bname, char *fromdir)
+m_sob_brd(char *bname, char *fromdir)
{
char fbname[25], buf[256];
fileheader_t fh;
@@ -202,24 +202,25 @@ m_fpg_brd(char *bname, char *fromdir)
fromdir[0]=0;
do{
- if(!getdata(20,0, "小魚的板名 [英文大小寫要完全正確]:", fbname, 20,
+ if(!getdata(20,0, "SOB的板名 [英文大小寫要完全正確]:", fbname, 20,
DOECHO)) return;
}
while((invalid_brdname(fbname)&1));
- sprintf(buf, "fpg/boards/%s.inf", fbname);
+ sprintf(buf, "sob/man/%s.tar.gz", fbname);
if(!dashf(buf))
{
vmsg("無此看板");
return;
}
- chdir("fpg");
- sprintf(buf, "tar zxf boards/%s.tgz >/dev/null",fbname);
+ chdir(BBSHOME"/sob/boards");
+ sprintf(buf, "tar zxf %s.tar.gz >/dev/null",fbname);
system(buf);
- sprintf(buf, "tar zxf boards/%s.man.tgz >/dev/null", fbname);
+ chdir(BBSHOME"/sob/man");
+ sprintf(buf, "tar zxf %s.tar.gz >/dev/null", fbname);
system(buf);
chdir(BBSHOME);
- sprintf(buf, "mv fpg/home/bbs/man/boards/%s man/boards/%c/%s", fbname,
+ sprintf(buf, "mv sob/man/%s man/boards/%c/%s", fbname,
bname[0], bname);
system(buf);
sprintf(fh.title, "◆ %s 精華區", fbname);
@@ -227,6 +228,6 @@ m_fpg_brd(char *bname, char *fromdir)
sprintf(fh.owner, cuser.userid);
sprintf(buf, "man/boards/%c/%s/.DIR", bname[0], bname);
append_record(buf, &fh, sizeof(fh));
- sprintf(fromdir, "fpg/home/bbs/boards/%s/.DIR", fbname);
+ sprintf(fromdir, "sob/boards/%s/.DIR", fbname);
vmsg("即將匯入 %s 版資料..按鍵後需要一點時間",fbname);
}