# # # 25-Aug-05 amo Date-of-Birth # 31-Aug-05 amo Use single file: TGZ=2005.0901/X11.tgz # 04-Sep-05 amo Added kterm # 05-Sep-05 amo Added additional emac fonts for kanji, added libjpeg/libpng/libtiff for fvwm2 icons # 08-Sep-05 amo Start new development versions, added /usr/X11R6/share/fvwm, added ImagePath to /etc/X11/fvwm2/system.fvwm2rc # 09-Sep-05 amo Added 17MB of kochi-{mincho,Gothic}-subst.ttf, remove $Emacs fonts # 12-Sep-05 amo Use global VER variable, redefine usage of TGZ # 29-Sep-05 amo Use Generic Release Names ( SBM-test ) and Finalize while copying into $RELEASE # # # # must match TGZ in Init-RootFS.sh.txt # TGZ=2005.0908 # # VER=2005.0912 VER=`grep ^VER /etc/bash.common.sh | cut -d = -f 2 ` # # TGZ="x11-$VER" TGZ="$VER.x11" # # # # /usr/local should be /RD_WR/usr.local/ # # # excluding /fonts/ --> saves 50MB # excluding /include/ --> saves 9MB # X11DIR=" /etc/X11 /usr/X11 /usr/X11R6 " X11PIX=" /usr/X11R6/include/X11/pixmaps /usr/X11R6/include/X11/bitmaps " X11LIB=" /usr/lib/libjpeg* /usr/lib/libpng* /usr/lib/libtiff* /usr/lib/libimlib*.so " # # usr/X11R6/libexec/fvwm/2.4.19 was not excluded, so we do not need to explicity copy it X11Share="/usr/X11R6/share/fvwm " # # # # Sanity check before deleting the previous usr/X11R6 files # --------------------------------------------------------- # Patches="/opt/Bootable/Patches.X11" # if [ ! -d "$Patches/$TGZ" ]; then echo "#" echo "# WARNING: Creating: $Patches/$TGZ" echo "#" # mkdir "$Patches/$TGZ" # fi # cd $Patches # if [ "$?" != 0 ]; then echo "#" echo "# ERROR: Aborting: Could not find $Patches" echo "#" # exit 1 # fi # # # Get rid of the previous usr/X11R6 files # --------------------------------------- echo " rm -rf $TGZ/etc $TGZ/usr " sleep 5 # rm -rf $TGZ/etc $TGZ/usr # # # Create a minimal X11 Environment excluding stuff we do not want # --------------------------------------------------------------- # cd $Patches ( find $X11DIR \( -type f -o -type l \) -print | uniq | tar cf - `grep -iv ^# EXCLUDES.X11.txt` -T - ) | ( cd $TGZ ; tar xfp - ) # # # the bitmaps and pixmaps ( /include/ is excluded by EXCLUDES.X11.txt so we have to explicitly get it ) # ----------------------- cd $Patches ( find $X11PIX $X11LIB $X11Share | tar cf - -T - ) | ( cd $TGZ ; tar xfp - ) # # #xx # --------- #xx # For emacs #xx # --------- #xx # and run mkfontdir to create font.dir files #xx Emacs="/usr/local/share/emacs/fonts" #xx # #xx cd $Patches #xx mkdir -p $TGZ/$Emacs #xx cp -dpar $Emacs/j* $TGZ/$Emacs #xx # #xx sync #xx cd $TGZ ; mkfontdir "$Emacs " # # # Cleanup BEFORE making a tar file # --------------------------------- rm -f $TGZ/etc/X11/fvwm2/system.fvwm2rc.Slack-10.1 # # # Create one X11.tgz and X11.log file # ----------------------------------- # cd $Patches ( cd $TGZ ; tar zcf $TGZ.tgz etc usr ; tar ztvf $TGZ.tgz > $TGZ.log ; cd .. ) # echo "#" echo "# ls -la $TGZ " echo "#" # # # # =================================================== # # TGZ=2005.0829 # # find /etc/X11 /usr/X11 /usr/X11R6 -type f -print | uniq | tar zcvf $TGZ/X11.medium.tgz `grep -iv ^# EXCLUDES.X11.txt` -T - # find /etc/X11 /usr/X11 /usr/X11R6 -type l -print | uniq | tar zcvf $TGZ/X11.medium.links.tgz `grep -iv ^# EXCLUDES.X11.txt` -T - # # # find /usr/X11R6/include/X11/pixmaps /usr/X11R6/include/X11/bitmaps | tar zcvf $TGZ/X11.medium.pixmaps.tgz -T - # # # End of file