/***************************************************************************** * OK335xS psplash make-image-he Ader.sh Hacking * Description: * Transplant when you want to know the transplant Psplash./make-image-header.sh Screenshot.png POKY * The last POKY why to specify, feel as long as the interpretation of this code can know why The * 2016-4-18 Shenzhen Nanshan Ping Shan village Zengjianfeng ************************************************************ ****************/#!/bin/sh#-e If the command returns with a value other than 0, exit immediatelySet-e#1. Syntax # basename String [Suffix]#2It is known from here that the picture if the. png file Imageh= ' basename $1. png '-img.h# Here is the variable name for subsequent modifications name="${2}_img"# Generate file GdK-pixbuf-csource--macros $1>$imageh. tmp# modifying file contents sed-E"s/my_pixbuf/${name}/g"-E"s/guint8/uint8/g"$imageh. tmp > $imageh && RM $imageh. tmp
Ok335xs Psplash make-image-header.sh Hacking