2023-11-12 13:49:01 +00:00
|
|
|
#! /bin/sh
|
|
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
|
|
|
as_nop=:
|
|
|
|
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
|
|
|
then :
|
|
|
|
emulate sh
|
|
|
|
NULLCMD=:
|
|
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
|
|
setopt NO_GLOB_SUBST
|
|
|
|
else $as_nop
|
|
|
|
case `(set -o) 2>/dev/null` in #(
|
|
|
|
*posix*) :
|
|
|
|
set -o posix ;; #(
|
|
|
|
*) :
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
|
|
|
do eval test \${$as_var+y} \
|
|
|
|
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
|
|
done
|
|
|
|
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
|
|
|
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
|
|
|
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
|
|
|
if ${PATH_SEPARATOR+false} :; then
|
|
|
|
PATH_SEPARATOR=:
|
|
|
|
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
|
|
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
|
|
PATH_SEPARATOR=';'
|
|
|
|
}
|
|
|
|
fi
|
2023-11-12 18:29:17 +00:00
|
|
|
cat echo setopt alias bc python3 python perl sed grep diff cmp \
|
|
|
|
test expr mkdir touch chmod rm mv cp ln mkdir
|
|
|
|
echo
|
|
|
|
if [ -d ]; then
|
|
|
|
cd && git pull && cd ..
|
2023-11-12 13:49:01 +00:00
|
|
|
else
|
2023-11-12 18:29:17 +00:00
|
|
|
git clone --depth 1
|
2023-11-12 13:49:01 +00:00
|
|
|
fi
|
|
|
|
|
2023-11-12 18:29:17 +00:00
|
|
|
if ! diff >/dev/null 2>&1; then
|
2023-11-12 13:49:01 +00:00
|
|
|
else
|
|
|
|
fi
|
2023-11-12 18:29:17 +00:00
|
|
|
pids=()
|
|
|
|
for f in *.txt; do
|
|
|
|
if [ ! -f "$f.slug" ]; then
|
|
|
|
process $f &
|
|
|
|
pids[${#pids[@]}]=$!
|
2023-11-12 13:49:01 +00:00
|
|
|
else
|
2023-11-12 18:29:17 +00:00
|
|
|
fi
|
2023-11-12 13:49:01 +00:00
|
|
|
done
|
|
|
|
for pid in ${pids[*]}; do
|
|
|
|
wait $pid
|
2023-11-12 18:29:17 +00:00
|
|
|
done
|