Magellan Linux

Diff of /trunk/mage/usr/lib/mage/pkgbuild_dir.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 314 by niro, Sun Jan 1 23:15:54 2006 UTC revision 315 by niro, Sun Jan 1 23:46:08 2006 UTC
# Line 4  Line 4 
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"
# Line 125  build_postinstall() Line 125  build_postinstall()
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    

Legend:
Removed from v.314  
changed lines
  Added in v.315