| 1 | #!/bin/sh |
| 2 | source=$1 |
| 3 | where=$2 |
| 4 | cd $where |
| 5 | dest=ecl.nsi |
| 6 | where=`pwd -W` |
| 7 | echo $where |
| 8 | set -x |
| 9 | sed -e '/!@INSTALLFILES@/,$d' -e "s,@ECLDIR@,$where," $source > $dest |
| 10 | find . -type f -maxdepth 1 | sed -e '/^\.$/d;s,^./,,g;s,/,\\,g;'\ |
| 11 | -e 's,^\(.*\)$, File "${ECLDIR}\\\1",g' >> $dest |
| 12 | find . -type d -maxdepth 1 | grep -v ecl.exe | grep -v ecl.nsi | \ |
| 13 | sed -e '/^\.$/d;s,^./,,g;s,/,\\,g;' \ |
| 14 | -e 's,^\(.*\)$, File /r "${ECLDIR}\\\1",g' >> $dest |
| 15 | sed '1,/!@INSTALLFILES@/d;/!@DELETEFILES@/,$d' $source >> $dest |
| 16 | find . -type f -maxdepth 1 | sed -e '/^\.$/d;s,^./,,g;s,/,\\,g;'\ |
| 17 | -e 's,^\(.*\)$, Delete "$INSTDIR\\\1",g' >> $dest |
| 18 | find . -type d -maxdepth 1 | grep -v ecl.exe | grep -v ecl.nsi | \ |
| 19 | sed -e '/^\.$/d;s,^./,,g;s,/,\\,g;' \ |
| 20 | -e 's,^\(.*\)$, RMDir /r "$INSTDIR\\\1",g' >> $dest |
| 21 | sed '1,/!@DELETEFILES@/d' $source >> $dest |