Advertisement
s243a

update-puppy-skeleton

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