Advertisement
s243a

clone_ppm

Mar 7th, 2020
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.25 KB | None | 0 0
  1.  
  2. #/bin/sh
  3. [ -z "$2" ] && set -- "$1" ppm #ppm is the default second argument
  4. mkdir "$2"
  5. cd "$2"
  6. if [ "$1" = init ] || [ "$1" = all ]; then
  7.  
  8.    
  9.   git init
  10.   git remote add origin git@github.com:puppylinux-woof-CE/woof-CE.git
  11.   git remote add –f origin git@github.com:puppylinux-woof-CE/woof-CE.git
  12.   git config core.sparsecheckout true
  13. fi
  14. if [ "$1" = add_checkouts ] || [ "$1" = all ]; then
  15.     #Main Directory
  16.     echo /woof-code/rootfs-skeleton/usr/local/petget/ >> .git/info/sparse-checkout
  17.     #Another important directory
  18.     echo /woof-code/rootfs-packages/check_deps_gui >> .git/info/sparse-checkout
  19.    
  20.     #Empty Directory
  21.    
  22.     #Symlinks
  23.     echo /woof-code/rootfs-skeleton/usr/local/bin/ppm >> .git/info/sparse-checkout
  24.     echo /woof-code/rootfs-skeleton/root/.packages >> .git/info/sparse-checkout
  25.     echo /woof-code/rootfs-skeleton/usr/sbin/petget >> .git/info/sparse-checkout
  26.     echo /woof-code/rootfs-skeleton/usr/sbin/dotpup1 >> .git/info/sparse-checkout  
  27.    
  28.     #Scripts
  29.     echo /woof-code/rootfs-skeleton/usr/bin/dir2pet >> .git/info/sparse-checkout
  30.     echo /woof-code/rootfs-skeleton/usr/bin/dirs2pets >> .git/info/sparse-checkout
  31.     echo /woof-code/rootfs-skeleton/usr/bin/dotpet >> .git/info/sparse-checkout
  32.     echo /woof-code/rootfs-skeleton/usr/bin/pet2tgz >> .git/info/sparse-checkout
  33.     echo /woof-code/rootfs-skeleton/usr/bin/petspec >> .git/info/sparse-checkout
  34.     echo /woof-code/rootfs-skeleton/usr/bin/tgz2pet >> .git/info/sparse-checkout
  35.     echo /woof-code/rootfs-skeleton/usr/sbin/dotpup1 >> .git/info/sparse-checkout
  36.  
  37.     #This scirpt is called when you click on the install button on the desktop or top tray
  38.     echo /woof-code/rootfs-skeleton/usr/sbin/dotpup >> .git/info/sparse-checkout
  39.    
  40.     #This defines the menu item for the package manager.
  41.     echo /woof-code/rootfs-skeleton/usr/share/applications/petget.desktop
  42.    
  43.     #Let's not forget the license.
  44.     echo LICENSE >> .git/info/sparse-checkout  
  45.  
  46.     #Some files related to building a puppy.
  47.     echo /woof-code/0setup >> .git/info/sparse-checkout
  48.     echo /woof-code/PKGS_MANAGEMENT >> .git/info/sparse-checkout   
  49.     echo /woof-code/_00build.conf >> .git/info/sparse-checkout
  50.     echo /woof-distro >> .git/info/sparse-checkout
  51.        
  52.     #Let's not forget the license.
  53.     echo LICENSE >> .git/info/sparse-checkout
  54.    
  55. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement