Initial commit
This commit is contained in:
20
code/work/make.sh
Executable file
20
code/work/make.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir pkg
|
||||
|
||||
cd ../datadifflib
|
||||
|
||||
make clean
|
||||
make
|
||||
|
||||
cd -
|
||||
|
||||
cp ../datadifflib/scan ./pkg
|
||||
cp ../datalib/fileinfo.db ./pkg
|
||||
cp ../datadifflib/pkg.sh .
|
||||
|
||||
tar zcf pkg.tar.gz ./pkg
|
||||
|
||||
cat pkg.tar.gz >> pkg.sh
|
||||
|
||||
rm -rf pkg.tar.gz pkg
|
||||
19
code/work/test.c
Normal file
19
code/work/test.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include<unistd.h>
|
||||
int main()
|
||||
{
|
||||
int i=0;
|
||||
char bar[101];
|
||||
const char* lable="|/-\\";//打印旋转的图标
|
||||
while(i<=100)
|
||||
{
|
||||
bar[i]='\0';
|
||||
printf("[%-100s] [%c] [%d/%]\r",bar,lable[i%4],i);
|
||||
fflush(stdout);
|
||||
bar[i]='#';
|
||||
i++;
|
||||
usleep(10000);
|
||||
}
|
||||
printf("/n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user