|
Revision 21
(checked in by kai, 2 years ago)
|
Initial commit of ShortHike sources and assets.
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
# A nifty little bash script for creating the filelist we need when updating the different |
|---|
| 3 |
# directories on the target computer. |
|---|
| 4 |
|
|---|
| 5 |
echo o... Removing any stale files |
|---|
| 6 |
rm -f filelist.txt _create_filelist_md5 |
|---|
| 7 |
|
|---|
| 8 |
echo oo.. Creating script file |
|---|
| 9 |
/bin/find -type f -and -not -name filelist.txt -and -not -name _create_filelist_md5 -printf 'echo $(md5sum %P|cut -b -32) $(wc -c %P)\n' >_create_filelist_md5 |
|---|
| 10 |
|
|---|
| 11 |
echo ooo. Calculating md5 sums |
|---|
| 12 |
echo FileList > filelist.txt |
|---|
| 13 |
source _create_filelist_md5 | sort >> filelist.txt |
|---|
| 14 |
|
|---|
| 15 |
echo oooo Removing temp files |
|---|
| 16 |
rm -f _create_filelist_md5 |
|---|