summaryrefslogtreecommitdiffstats
path: root/upgrade
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-06 23:42:27 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-06 23:42:27 +0800
commitb6bbb6238653053f6f30211560166394bfcb7381 (patch)
tree3d1006666b2deedb341f200f2df85d9be12eddb2 /upgrade
parentc1f7245de4760644e162114442c13cbdf87d2b16 (diff)
downloadpttbbs-b6bbb6238653053f6f30211560166394bfcb7381.tar
pttbbs-b6bbb6238653053f6f30211560166394bfcb7381.tar.gz
pttbbs-b6bbb6238653053f6f30211560166394bfcb7381.tar.bz2
pttbbs-b6bbb6238653053f6f30211560166394bfcb7381.tar.lz
pttbbs-b6bbb6238653053f6f30211560166394bfcb7381.tar.xz
pttbbs-b6bbb6238653053f6f30211560166394bfcb7381.tar.zst
pttbbs-b6bbb6238653053f6f30211560166394bfcb7381.zip
- upgrade script update
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3973 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'upgrade')
-rw-r--r--upgrade/Makefile4
-rw-r--r--upgrade/r2014_angel.c (renamed from upgrade/r2014convert.c)0
-rw-r--r--upgrade/r3968_chicken.c6
3 files changed, 6 insertions, 4 deletions
diff --git a/upgrade/Makefile b/upgrade/Makefile
index d050eba1..98903405 100644
--- a/upgrade/Makefile
+++ b/upgrade/Makefile
@@ -18,9 +18,7 @@ LIBS+= $(SRCROOT)/src/libbbsutil/libbbsutil.a \
all:
echo "Usually you won't build everything for upgrading, so we let you decide what to run."
+ echo "Please type make rDDDD_XXXX to build your upgrade program."
$(SRCROOT)/include/var.h: $(SRCROOT)/mbbsd/var.c
cd $(SRCROOT)/mbbsd; $(MAKE) $(SRCROOT)/include/var.h
-
-r2014convert: r2014convert.c
- $(CCACHE) ${CC} ${CFLAGS} ${LDFLAGS} -o r2014convert r2014convert.c $(LIBS)
diff --git a/upgrade/r2014convert.c b/upgrade/r2014_angel.c
index 14de742b..14de742b 100644
--- a/upgrade/r2014convert.c
+++ b/upgrade/r2014_angel.c
diff --git a/upgrade/r3968_chicken.c b/upgrade/r3968_chicken.c
index 740f42fe..70d90def 100644
--- a/upgrade/r3968_chicken.c
+++ b/upgrade/r3968_chicken.c
@@ -73,14 +73,17 @@ int main()
FILE *fp = fopen(FN_PASSWD, "rb"), *fp2 = NULL;
char fn[PATHLEN];
old_userec_t u;
+ int i;
if (!fp) {
printf("cannot load password file. abort.\n");
return -1;
}
+ i = 0;
while (fread(&u, sizeof(u), 1, fp) > 0)
{
+ i++;
if (!u.userid[0])
continue;
if (!u.mychicken.name[0])
@@ -102,7 +105,8 @@ int main()
unlink(fn);
}
else
- printf("Transferred chicken data OK: %s.\n", u.userid);
+ // printf("Transferred chicken data OK: %s.\n", u.userid);
+ ;
fclose(fp2); fp2 = NULL;
}
fclose(fp);