X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fwin32%2Fgen_win.sh;fp=src%2Fwin32%2Fgen_win.sh;h=d545d08b0e71fd2aaa3226a5c702bf3aa8ef88e3;hp=38c4a2ad0dfa553a76cd0c8a8596d43a4de5aedb;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hpb=ef70704f0b31b59bb719b884d6a99cb9e3e2044a diff --git a/src/win32/gen_win.sh b/src/win32/gen_win.sh index 38c4a2a..d545d08 100755 --- a/src/win32/gen_win.sh +++ b/src/win32/gen_win.sh @@ -10,6 +10,7 @@ WINPKG="win-pkg" ./unix2dos.pl ossec.conf > ossec-win.conf ./unix2dos.pl help.txt > help_win.txt ./unix2dos.pl ../../etc/internal_options.conf > internal_options-win.conf +./unix2dos.pl ../../etc/local_internal_options-win.conf > local_internal_options-win.conf ./unix2dos.pl ../../LICENSE > LICENSE.txt ./unix2dos.pl ../../active-response/win/route-null.cmd > route-null.cmd ./unix2dos.pl ../../active-response/win/restart-ossec.cmd > restart-ossec.cmd @@ -34,15 +35,15 @@ for i in ${CAT}; do if [ ! $? = 0 ]; then echo "Error copying ${source} to ${WINPKG}/${dest}" exit 1; - fi + fi source="" dest="" - fi -done + fi +done -# Final cleanup -rm ${WINPKG}/os_crypto/md5/main.c -rm ${WINPKG}/os_crypto/blowfish/main.c -rm ${WINPKG}/os_crypto/sha1/main.c -rm ${WINPKG}/os_crypto/md5_sha1/main.c -rm ${WINPKG}/shared/rules_op.c +# Final cleanup, -f will ignore if files do not exist +rm -f ${WINPKG}/os_crypto/md5/main.c +rm -f ${WINPKG}/os_crypto/blowfish/main.c +rm -f ${WINPKG}/os_crypto/sha1/main.c +rm -f ${WINPKG}/os_crypto/md5_sha1/main.c +rm -f ${WINPKG}/shared/rules_op.c