small shell script improvements
This commit is contained in:
parent
9c378151a3
commit
c0af243403
|
@ -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"
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/bin/bash
|
||||
xfd -center -columns 16 -fn -misc-8x16graph-medium-r-normal--17-160-75-75-*-80-iso8859-1
|
||||
|
||||
|
||||
|
|
|
@ -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++
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue