mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 06:07:59 +01:00
quotes in make
This commit is contained in:
parent
566a381fbd
commit
1adaea0daf
2 changed files with 14 additions and 32 deletions
29
configure
vendored
29
configure
vendored
|
@ -19,7 +19,7 @@ oldCompiledDirs=''
|
||||||
installedFiles='bin/ponysay bin/ponythink bin/ponysay.py bin/ponythink.py doc/ponysay.pdf share/info/ponysay.info.gz share/info/ponythink.info.gz'
|
installedFiles='bin/ponysay bin/ponythink bin/ponysay.py bin/ponythink.py doc/ponysay.pdf share/info/ponysay.info.gz share/info/ponythink.info.gz'
|
||||||
installedDirs='share/ponysay lib/ponysay'
|
installedDirs='share/ponysay lib/ponysay'
|
||||||
compiledFiles='truncater ponysay.info.gz ponysay.py.install'
|
compiledFiles='truncater ponysay.info.gz ponysay.py.install'
|
||||||
compiledDirs=''
|
compiledDirs='quotes'
|
||||||
|
|
||||||
for man in $manFiles; do
|
for man in $manFiles; do
|
||||||
oldCompiledFiles="$oldCompiledFiles $man.gz"
|
oldCompiledFiles="$oldCompiledFiles $man.gz"
|
||||||
|
@ -160,7 +160,7 @@ function makeMakefile()
|
||||||
echo
|
echo
|
||||||
echo 'default: '"$compileMethods"
|
echo 'default: '"$compileMethods"
|
||||||
echo
|
echo
|
||||||
echo 'all: core truncater manpages infomanual ponysaycompletion ponythinkcompletion'
|
echo 'all: core truncater quotes manpages infomanual ponysaycompletion ponythinkcompletion'
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "core:"
|
echo "core:"
|
||||||
|
@ -172,6 +172,17 @@ function makeMakefile()
|
||||||
echo '$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o "truncater" "truncater.c"'
|
echo '$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o "truncater" "truncater.c"'
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo "quotes:"
|
||||||
|
echo -en '\t' ; echo 'mkdir -p quotes'
|
||||||
|
echo -en '\t' ; echo 'for ponies in $$(cat ponyquotes/ponies); do \'
|
||||||
|
echo -en '\t' ; echo ' for pony in $$(echo $$ponies | sed -e '\''s/+/ /g'\''); do \'
|
||||||
|
echo -en '\t' ; echo ' echo '\''Generating quote files for '\''"$$pony"; \'
|
||||||
|
echo -en '\t' ; echo ' for file in $$(ls "ponyquotes/" | grep "$$pony\\.*"); do \'
|
||||||
|
echo -en '\t' ; echo ' if [ -f "ponyquotes/$$file" ]; then \'
|
||||||
|
echo -en '\t' ; echo ' cp "ponyquotes/"$$file "quotes/"$$ponies'\''.'\''$$(echo $$file | cut -d '\''.'\'' -f 2) \'
|
||||||
|
echo -en '\t' ; echo ';fi;done;done;done'
|
||||||
|
echo
|
||||||
|
|
||||||
echo 'manpages:'
|
echo 'manpages:'
|
||||||
gzCompress $manFiles
|
gzCompress $manFiles
|
||||||
echo
|
echo
|
||||||
|
@ -190,7 +201,7 @@ function makeMakefile()
|
||||||
thinkCompletion $completions
|
thinkCompletion $completions
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo 'install-min: core truncater'
|
echo 'install-min: core truncater quotes'
|
||||||
echo -en '\t' ; echo 'mkdir -p "$(INSTALLDIR)/share/ponysay/"'
|
echo -en '\t' ; echo 'mkdir -p "$(INSTALLDIR)/share/ponysay/"'
|
||||||
for dir in $shareDirs; do
|
for dir in $shareDirs; do
|
||||||
echo -en '\t' ; echo 'mkdir -p "$(INSTALLDIR)/share/ponysay/'"$dir"'"'
|
echo -en '\t' ; echo 'mkdir -p "$(INSTALLDIR)/share/ponysay/'"$dir"'"'
|
||||||
|
@ -342,18 +353,6 @@ pdfmanual:
|
||||||
done
|
done
|
||||||
if [ -d "ponysay.t2d" ]; then rm -r "ponysay.t2d"; fi
|
if [ -d "ponysay.t2d" ]; then rm -r "ponysay.t2d"; fi
|
||||||
|
|
||||||
submodules: clean
|
|
||||||
(cd "ponyquotes4ponysay/"; make clean)
|
|
||||||
git submodule init
|
|
||||||
git submodule update
|
|
||||||
|
|
||||||
quotes: submodules
|
|
||||||
(cd "ponyquotes4ponysay/"; make -B)
|
|
||||||
if [ -d quotes ]; then git rm "quotes/"*.*; fi
|
|
||||||
mkdir -p "quotes"
|
|
||||||
cp "ponyquotes4ponysay/ponyquotes/"*.* "quotes"
|
|
||||||
git add "quotes/"*.*
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
mkdir -p quotes
|
|
||||||
|
|
||||||
for ponies in $(cat ponyquotes/ponies); do
|
|
||||||
|
|
||||||
for pony in $(echo $ponies | sed -e 's/+/ /g'); do
|
|
||||||
echo 'Generating quote files for '"$pony"
|
|
||||||
|
|
||||||
for file in $(ls "ponyquotes/" | grep "$pony\\.*"); do
|
|
||||||
|
|
||||||
if [[ -f "ponyquotes/$file" ]]; then
|
|
||||||
|
|
||||||
cp "ponyquotes/"$file "quotes/"$ponies'.'$(echo $file | cut -d '.' -f 2)
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
Loading…
Reference in a new issue