s243a

install_woof_CE_package

Aug 1st, 2019
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. #!/bin/sh
  2. #CURDIR="`realpath .`"
  3. #. ./build.conf
  4.  
  5. SVN_ROOT="/var/tmp/svn"
  6. #SVN_REPO_BASE="woof-CE"
  7. mkdir -p "$SVN_ROOT"
  8. cd "$SVN_ROOT"
  9.  
  10. #https://stackoverflow.com/questions/7106012/download-a-single-folder-or-directory-from-a-github-repo
  11. BASE_URL=https://github.com
  12. REPO=puppylinux-woof-CE/woof-CE
  13. BRANCH=trunk #either "trunk" or "branches/branch"
  14. #Checked out revision 1.
  15. F_PATH=woof-code
  16. FOLDER=rootfs-packages
  17. mkdir -p "$REPO/$BRANCH/$F_PATH"
  18. cd $REPO/$BRANCH/$F_PATH
  19. #TODO add check that dir is empty then do svn command
  20. if [ ! -d $FOLDER ]; then
  21.   svn export $BASE_URL/$REPO/$BRANCH/$F_PATH/$FOLDER
  22. fi
  23. cd $FOLDER
  24. F_NAME_DIR="$FOLDER" #Keep this for historical reasons. See: https://pastebin.com/q3J2eEVu
  25. TARGET_DIR="/"
  26. ( cd $F_NAME_DIR; find . -name '*' ) | cpio -pd "$TARGET_DIR"
Advertisement
Add Comment
Please, Sign In to add comment