SHARE
TWEET

add_puppy_jwm_files.sh

s243a Mar 7th, 2019 (edited) 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #written by mistfire, modified by s243a
  3. #Build TazPuppy either online or local
  4. curdir=$(realpath `pwd`/..)
  5. prefix="/64"
  6. theme_inst_folder=/theme
  7. #Draft Function (Not used yet)
  8. move_in_target(){
  9.     mv $curdir/slitaz-rootfs$prefix/$1 $curdir/slitaz-rootfs$prefix/$2
  10. }
  11. #Draft Function (Not used yet)
  12. install_fm_desktop_jwm_woof_CE(){
  13.     Source_Path=$curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-packages/woof-CE-19-03-06/
  14.     Target_Path=$curdir/slitaz-rootfs$prefix
  15.     Theme_Inst_Folder=$Target_Path/desktop_pkg_inst_scripts
  16.     mkdir -p $Theme_Inst_Folder
  17.     cp --remove-destination -arf $Source_Path/$1/* \
  18.                                  $Target_Path/ 2>/dev/null 
  19.     chroot $Target_Path pinstall.sh  
  20.     move_in_target pintstall.sh $Theme_Inst_Folde/$1_pinstall.sh  
  21. }
  22. #This is done earlier in make-tazpup.sh so maybe not needed.
  23. install_rox(){
  24.                         /pkgs/desktop/rox/next64
  25.     rox_pkg_dir="$curdir/pkgs/desktop/rox/next64"
  26.     for aPkg in `ls -1 "$rox_pkg_dir"`; do # $pkgs/slitaz-base pkgs/slitaz-dependencies pkgs/slitaz-packages pkgs/slitaz-preinst-pkg; do
  27.        cp --remove-destination -arf $rox_pkg_dir/$aPkg $curdir/slitaz-rootfs$prefix/$pkgs #2>/dev/null
  28.     done
  29.     for aPkg in `ls -1 "$rox_pkg_dir"`; do
  30.       install_pkg $rox_pkg_dir/$aPkg
  31.       post_inst_fixes $pkg
  32.     done
  33.    
  34.     cd $curdir/slitaz-rootfs$prefix/usr/share/rox-filer
  35.     ln -s rox-filer ROX-Filer
  36.    
  37.     cd $curdir/slitaz-rootfs$prefix/usr/bin
  38.     ln -s rox-filer rox-filer roxfiler    
  39. }
  40.  
  41. add_puppy_jwm_files(){
  42.     mkdir -p $curdir/slitaz-rootfs$prefix/desktop_pkg_inst_scripts  $TODO use var
  43.     #cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/ptheme/* $curdir/slitaz-rootfs$prefix/ 2>/dev/null
  44.    
  45.     cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-skeleton/rootfs-skeleton-slacko6.9.9/* \
  46.                                  $curdir/slitaz-rootfs$prefix/ 2>/dev/null 
  47.                                  
  48.     mkdir -p $curdir/slitaz-rootfs$prefix/usr/local/petget/
  49.     cp --remove-destination -arf $curdir/tazpup-core-files/pkg-managers/petget/usr/local/petget/pinstall.sh \
  50.                                  $curdir/slitaz-rootfs$prefix/usr/local/petget/pinstall.sh 2>/dev/null   
  51.                                  
  52.     cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-packages/woof-CE-19-03-06/pt_buntoo/* \
  53.                                  $curdir/slitaz-rootfs$prefix/ 2>/dev/null                                                               
  54.     chroot "$curdir/slitaz-rootfs$prefix/" /pinstall.sh  
  55.     mv $curdir/slitaz-rootfs$prefix/pinstall.sh $curdir/slitaz-rootfs$prefix/desktop_pkg_inst_scripts/pt_buntoop_install.sh  
  56.  
  57.     cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-packages/woof-CE-19-03-06/pt_faux_xfwm/* \
  58.                                  $curdir/slitaz-rootfs$prefix/ 2>/dev/null 
  59.     chroot "$curdir/slitaz-rootfs$prefix/" /pinstall.sh  
  60.     mv $curdir/slitaz-rootfs$prefix/pinstall.sh $curdir/slitaz-rootfs$prefix/desktop_pkg_inst_scripts/pt_faux_xfwm_install.sh
  61.  
  62.     cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-packages/woof-CE-19-03-06/wallpaper/* \
  63.                                  $curdir/slitaz-rootfs$prefix/ 2>/dev/null 
  64.  
  65.     cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-packages/woof-CE-19-03-06/ptheme/* \
  66.                                  $curdir/slitaz-rootfs$prefix/ 2>/dev/null 
  67.     chroot "$curdir/slitaz-rootfs$prefix/" /pinstall.sh  
  68.     #move_in_target pintstall.sh theme_inst_folder/ptherme_pinstall.sh
  69.     mkdir -p $curdir/slitaz-rootfs$prefix/desktop_pkg_inst_scripts
  70.     mv $curdir/slitaz-rootfs$prefix/pinstall.sh $curdir/slitaz-rootfs$prefix/desktop_pkg_inst_scripts/rox_config_pinstall.sh    
  71.  
  72.     cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-packages/woof-CE-19-03-06/rox_config/* \
  73.                                  $curdir/slitaz-rootfs$prefix/ 2>/dev/null 
  74.     chroot "$curdir/slitaz-rootfs$prefix/" /pinstall.sh  
  75.     #mkdir -p $curdir/slitaz-rootfs$prefix/ #Already done above
  76.     mv $curdir/slitaz-rootfs$prefix/pinstall.sh $curdir/slitaz-rootfs$prefix/desktop_pkg_inst_scripts/rox_config_pinstall.sh
  77.  
  78.     cp --remove-destination -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-packages/woof-CE-19-03-06/jwm_config/* \
  79.                                  $curdir/slitaz-rootfs$prefix/ #2>/dev/null
  80.     chroot "$curdir/slitaz-rootfs$prefix/" /pinstall.sh  
  81.     #mkdir -p $curdir/slitaz-rootfs$prefix/ #Already done above
  82.     mv $curdir/slitaz-rootfs$prefix/pinstall.sh $curdir/slitaz-rootfs$prefix/desktop_pkg_inst_scripts/jwm_config_pinstall.sh
  83.  
  84. }
  85. #Draft Function (Not used yet)
  86. #add_puppy_jwm_files_fm_list(){
  87. #   while IFS= read -r -d read desktop_pkg; do
  88. #   ;
  89. #   done <<-EOM
  90. #       pt_buntu
  91. #       wallpaper
  92. #       rox_config
  93. #   EOM
  94. #}
  95. install_rox
  96. add_puppy_jwm_files
  97. cp --no-clobber -arf $curdir/tazpup-core-files/desktop/jwm/no-arch/rootfs-skeleton/s243a/* $curdir/slitaz-rootfs$prefix/ 2>/dev/null
  98. cd $curdir/slitaz-rootfs$prefix/usr/bin
  99. ln -s rox-filer roxfiler
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top