54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
#! /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
|
|
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 ..
|
|
else
|
|
git clone --depth 1
|
|
fi
|
|
|
|
if ! diff >/dev/null 2>&1; then
|
|
else
|
|
fi
|
|
pids=()
|
|
for f in *.txt; do
|
|
if [ ! -f "$f.slug" ]; then
|
|
process $f &
|
|
pids[${#pids[@]}]=$!
|
|
else
|
|
fi
|
|
done
|
|
for pid in ${pids[*]}; do
|
|
wait $pid
|
|
done |