1# -*- shell-script -*- 2message testing to add/update files to archive. 3$lha a test-tmp.lzh test-c 4 check $? $LINENO 5$lha a test-tmp.lzh test-b 6 check $? $LINENO 7$lha u test-tmp.lzh test-a 8 check $? $LINENO 9$lha xw=test-tmp test-tmp.lzh 10 check $? $LINENO 11diff -r test-1 test-tmp 12 check $? $LINENO 13(cd test-tmp 14 15 sleep 1 16 echo foo > test-a 17 echo bar > test-b 18 echo baz > test-c 19 20 # update with new files 21 $lha u ../test-tmp.lzh test-[abc] 22) 23 check $? $LINENO 24 25# old files are in test-1 and in current directory 26# new files are in test-tmp 27$lha vv test-1.lzh 28 check $? $LINENO 29$lha vv test-tmp.lzh 30 check $? $LINENO 31 32$lha xw=test-tmp2 test-tmp.lzh 33 check $? $LINENO 34diff -r test-tmp test-tmp2 35 check $? $LINENO 36# no update with old files 37$lha u test-tmp.lzh test-[abc] 38 39$lha xw=test-tmp3 test-tmp.lzh 40 check $? $LINENO 41diff -r test-tmp test-tmp3 42 check $? $LINENO 43# replace with old files 44$lha a test-tmp.lzh test-[abc] 45 46$lha xw=test-tmp4 test-tmp.lzh 47 check $? $LINENO 48diff -r test-1 test-tmp4 49 check $? $LINENO 50# replace with new files 51(cd test-tmp && 52 $lha a ../test-tmp.lzh test-[abc] 53) 54 55$lha xw=test-tmp5 test-tmp.lzh 56 check $? $LINENO 57diff -r test-tmp test-tmp5 58 check $? $LINENO 59