small shell script improvements

This commit is contained in:
Markus Gans 2016-04-02 18:35:34 +02:00
parent 9c378151a3
commit c0af243403
5 changed files with 6 additions and 7 deletions

View File

@ -8,7 +8,7 @@
```
> git clone git://github.com/gansm/finalcut.git
> cd finalcut
> ./configure --prefix=/usrX
> ./configure --prefix=/usr
> make
> su -c "make install"
```

View File

@ -1,11 +1,11 @@
#!/bin/bash
DIR="$PWD"
cd ../test/.libs/
cd ../test/.libs/ || exit
LD_LIBRARY_PATH=../../src/.libs/ ./ui
gprof ./ui >./profile.txt
rm ./gmon.out
less ./profile.txt
rm ./profile.txt
cd "$DIR"
cd "$DIR" || exit

View File

@ -1,4 +1,3 @@
#!/bin/bash
xfd -center -columns 16 -fn -misc-8x16graph-medium-r-normal--17-160-75-75-*-80-iso8859-1

View File

@ -14,12 +14,12 @@ FONTFILE="8x16graph.bdf"
| tr '\n' ',' \
| sed -e 's/BITMAP,//g' \
| sed -e 's/--,/\n/g' \
| tr '[A-Z]' '[a-z]' \
| tr '[:upper:]' '[:lower:]' \
| sed -e 's/,/, /g' \
| sed -e 's/\([0-9a-f][0-9a-f]\)/0x\1/g' \
| sed -e 's/^0/ 0/g' \
| sed -e '$s/, $/ \n/' \
| while IFS=$'\n'; read LINE
| while IFS=$'\n'; read -r LINE
do
echo "$LINE /* $N */"
let N++

View File

@ -13,7 +13,7 @@ FONTFILE="8x16std"
| sed -e 's/ {$/\n{/' \
| sed -e 's/^unsigned/static unsigned/' \
| sed -e '/len = /d' \
| while IFS=$'\n'; read LINE
| while IFS=$'\n'; read -r LINE
do
if [ "${LINE:0:1}" != " " ]
then