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
|
> git clone git://github.com/gansm/finalcut.git
|
||||||
> cd finalcut
|
> cd finalcut
|
||||||
> ./configure --prefix=/usrX
|
> ./configure --prefix=/usr
|
||||||
> make
|
> make
|
||||||
> su -c "make install"
|
> su -c "make install"
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DIR="$PWD"
|
DIR="$PWD"
|
||||||
cd ../test/.libs/
|
cd ../test/.libs/ || exit
|
||||||
LD_LIBRARY_PATH=../../src/.libs/ ./ui
|
LD_LIBRARY_PATH=../../src/.libs/ ./ui
|
||||||
gprof ./ui >./profile.txt
|
gprof ./ui >./profile.txt
|
||||||
rm ./gmon.out
|
rm ./gmon.out
|
||||||
less ./profile.txt
|
less ./profile.txt
|
||||||
rm ./profile.txt
|
rm ./profile.txt
|
||||||
cd "$DIR"
|
cd "$DIR" || exit
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
xfd -center -columns 16 -fn -misc-8x16graph-medium-r-normal--17-160-75-75-*-80-iso8859-1
|
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' ',' \
|
| tr '\n' ',' \
|
||||||
| sed -e 's/BITMAP,//g' \
|
| sed -e 's/BITMAP,//g' \
|
||||||
| sed -e 's/--,/\n/g' \
|
| sed -e 's/--,/\n/g' \
|
||||||
| tr '[A-Z]' '[a-z]' \
|
| tr '[:upper:]' '[:lower:]' \
|
||||||
| sed -e 's/,/, /g' \
|
| sed -e 's/,/, /g' \
|
||||||
| sed -e 's/\([0-9a-f][0-9a-f]\)/0x\1/g' \
|
| sed -e 's/\([0-9a-f][0-9a-f]\)/0x\1/g' \
|
||||||
| sed -e 's/^0/ 0/g' \
|
| sed -e 's/^0/ 0/g' \
|
||||||
| sed -e '$s/, $/ \n/' \
|
| sed -e '$s/, $/ \n/' \
|
||||||
| while IFS=$'\n'; read LINE
|
| while IFS=$'\n'; read -r LINE
|
||||||
do
|
do
|
||||||
echo "$LINE /* $N */"
|
echo "$LINE /* $N */"
|
||||||
let N++
|
let N++
|
||||||
|
|
|
@ -13,7 +13,7 @@ FONTFILE="8x16std"
|
||||||
| sed -e 's/ {$/\n{/' \
|
| sed -e 's/ {$/\n{/' \
|
||||||
| sed -e 's/^unsigned/static unsigned/' \
|
| sed -e 's/^unsigned/static unsigned/' \
|
||||||
| sed -e '/len = /d' \
|
| sed -e '/len = /d' \
|
||||||
| while IFS=$'\n'; read LINE
|
| while IFS=$'\n'; read -r LINE
|
||||||
do
|
do
|
||||||
if [ "${LINE:0:1}" != " " ]
|
if [ "${LINE:0:1}" != " " ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue