/[smeserver]/builds_bin/build_ISO
ViewVC logotype

Diff of /builds_bin/build_ISO

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

Revision 1.19 by slords, Thu Dec 27 15:23:15 2007 UTC Revision 1.23 by slords, Sat Jul 26 21:51:02 2008 UTC
# Line 2  Line 2 
2    
3  distname='SME Server'  distname='SME Server'
4  disttag='smeserver'  disttag='smeserver'
5  distvers=$(basename $(pwd))  distvers=$(basename $(readlink -f $(pwd)))
6  distrel=${distvers:0:1}  distrel=${distvers:0:1}
7  distarch=$(uname -i)  distarch=$(uname -i)
8    
9    exec < /dev/null
10    exec &> build_ISO.$distarch
11    
12  if ! [ -d $distarch ]  if ! [ -d $distarch ]
13  then  then
14      echo "No $distarch directory?"      echo "No $distarch directory?"
# Line 19  do Line 22  do
22          /usr/bin/mkcramfs \          /usr/bin/mkcramfs \
23          $(pwd)/$distarch/$img \          $(pwd)/$distarch/$img \
24          $(pwd)/$distarch/SME/base/$img.img          $(pwd)/$distarch/SME/base/$img.img
25      else      elif [ -d "$(pwd)/$distarch/$img" ]
26        then
27          /sbin/mksquashfs \          /sbin/mksquashfs \
28              $(pwd)/$distarch/$img \              $(pwd)/$distarch/$img \
29              $(pwd)/$distarch/images/$img.img \              $(pwd)/$distarch/images/$img.img \
# Line 51  rm -f ../iso/$distrel/$distarch/$disttag Line 55  rm -f ../iso/$distrel/$distarch/$disttag
55    
56  if [ "$distrel" == "7" ]  if [ "$distrel" == "7" ]
57  then  then
58      createrepo $(pwd)/$distarch/      createrepo --update --database $(pwd)/$distarch/
59  else  else
60      createrepo -g repodata/comps.xml -u "media://$(head -1 $distarch/.discinfo)" $(pwd)/$distarch/      createrepo --update --database --groupfile repodata/comps.xml -u "media://$(head -1 $distarch/.discinfo)" $(pwd)/$distarch/
61  fi  fi
62  sync; rm -rf $(pwd)/$distarch/.olddata  sync; rm -rf $(pwd)/$distarch/.olddata
63  repoview $(pwd)/$distarch/  repoview $(pwd)/$distarch/
# Line 105  then Line 109  then
109  fi  fi
110    
111  # That's it.  # That's it.
   


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed