4 |
# builds packages from given dir |
# builds packages from given dir |
5 |
# |
# |
6 |
|
|
7 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/pkgbuild_dir.sh,v 1.10 2006-01-01 23:15:54 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/pkgbuild_dir.sh,v 1.11 2006-01-01 23:46:08 niro Exp $ |
8 |
|
|
9 |
PKGSUFFIX="mpk" |
PKGSUFFIX="mpk" |
10 |
PKGNAME="$1" |
PKGNAME="$1" |
125 |
;; |
;; |
126 |
|
|
127 |
"character special file") |
"character special file") |
128 |
local CHAR_MAJOR="$(stat -c %t $I)" |
# convert hex2dec |
129 |
local CHAR_MINOR="$(stat -c %T $I)" |
# printf '%d' 0x12 -> 18 |
130 |
|
local CHAR_MAJOR="$(printf 0x$(stat -c %t $I))" |
131 |
|
local CHAR_MINOR="$(printf 0x$(stat -c %T $I))" |
132 |
echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${CHAR_MAJOR}§${CHAR_MINOR}" >> ${BUILDDIR}/${PKGNAME}/.char |
echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${CHAR_MAJOR}§${CHAR_MINOR}" >> ${BUILDDIR}/${PKGNAME}/.char |
133 |
;; |
;; |
134 |
|
|