File: makesample.sh

package info (click to toggle)
filters 2.52
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 264 kB
  • ctags: 47
  • sloc: lex: 1,880; perl: 1,018; ansic: 214; makefile: 83; sh: 10
file content (11 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e
chmod +x $1
echo $1 >>SAMPLES
echo "-------------" >>SAMPLES
if [ "$1" != fanboy ]; then
	printf "Here's how this filter sounds, in everyday use.\nNow is the time for all good men to come to the aid of their country." | ./$1 >>SAMPLES
else
	printf "This filter has to be tried on real world text to be understood! Oh, and Ubuntu Rules!" >>SAMPLES
fi
echo "" >>SAMPLES
echo "" >>SAMPLES