mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-09 02:30:25 +08:00
增加上传小工具
This commit is contained in:
@@ -21,4 +21,5 @@ target_link_libraries(simple-kanban spb pthread)
|
||||
target_link_libraries(simple-kanban-client pthread)
|
||||
target_link_libraries(cfgwriter spb)
|
||||
|
||||
INSTALL(TARGETS simple-kanban RUNTIME DESTINATION bin)
|
||||
INSTALL(TARGETS simple-kanban RUNTIME DESTINATION bin)
|
||||
INSTALL(TARGETS simple-kanban-client RUNTIME DESTINATION bin)
|
||||
@@ -106,3 +106,10 @@ simple-kanban [-d] 7777 1 ./kanban.txt ./data.bin ./cfg.sp
|
||||
键入:quit
|
||||
|
||||
回车即可
|
||||
|
||||
# 上传小工具
|
||||
在`uploader`文件夹有一个上传小工具,用法如下
|
||||
|
||||
```bash
|
||||
./push_dmzj.sh ip port kanban.txt data.bin password setpass
|
||||
```
|
||||
3
uploader/.gitignore
vendored
Normal file
3
uploader/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.bin
|
||||
*.txt
|
||||
*.apk
|
||||
24
uploader/push_dmzj.sh
Executable file
24
uploader/push_dmzj.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
if [ $# -lt 6 ];
|
||||
then
|
||||
echo "usage: ip port kanban.txt data.bin password setpass"
|
||||
exit
|
||||
fi
|
||||
|
||||
kanban=`sed '/md5:/d' $3`
|
||||
md5val=`md5 $4`
|
||||
cat > $3 << EOF
|
||||
$kanban
|
||||
EOF
|
||||
echo md5:${md5val##* } | tr -d '\n' >> $3
|
||||
cat > cmd_seq.txt << EOF
|
||||
fumiamaset$6
|
||||
dat
|
||||
file
|
||||
$4
|
||||
set$6
|
||||
ver
|
||||
file
|
||||
$3
|
||||
quit
|
||||
EOF
|
||||
simple-kanban-client $1 $2 < cmd_seq.txt
|
||||
Reference in New Issue
Block a user