| 1 | cd "${PREFIX}" |
| 2 | umask 022 |
| 3 | |
| 4 | mkdirscip-shell system . . mkdir. -p bin lib libexec share/terminfo |
| 5 | mkdirscip-shell system . . mkdir. -p lib/{python3.10,alibrary} |
| 6 | |
| 7 | echoscip-shell system . . echo. -e '#/bin/sh\necho hello world' > bin/hello-1.0 |
| 8 | chmodscip-shell system . . chmod. 755 bin/hello-1.0 |
| 9 | |
| 10 | echoscip-shell system . . echo. -n "" >share/terminfo/xterm.dat |
| 11 | chmodscip-shell system . . chmod. 644 share/terminfo/xterm.dat |
| 12 | |
| 13 | echoscip-shell system . . echo. -n "" >lib/alibrary/alib.lib |
| 14 | echoscip-shell system . . echo. -n "" >lib/python3.10/amodule.py |
| 15 | |
| 16 | # Tests for symlink... |
| 17 | pushd bin >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 18 | lnscip-shell system . . ln. -sn hello-1.0 hello # ...to file in same dir |
| 19 | popd >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 20 | |
| 21 | pushd libexec >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 22 | lnscip-shell system . . ln. -sn ../bin/hello greetings # ...to file in another dir |
| 23 | popd >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 24 | |
| 25 | pushd share >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 26 | lnscip-shell system . . ln. -sn terminfo termcap # ...to subdir in same dir |
| 27 | popd >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 28 | |
| 29 | pushd lib >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 30 | lnscip-shell system . . ln. -sn alibrary alib # ...to subdir in same dir |
| 31 | lnscip-shell system . . ln. -sn python3.10 python3.1 # ...to subdir in same dir |
| 32 | lnscip-shell system . . ln. -sn ../share/terminfo terminfo # ...to subdir of another dir |
| 33 | lnscip-shell system . . ln. -sn libdangle.lib.1 libdangle.lib # ...dangling link |
| 34 | popd >/dev/nullscip-shell filesystem . . `/dev/null`. |