Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #CURDIR="`realpath .`"
- #. ./build.conf
- SVN_ROOT="/var/tmp/svn"
- #SVN_REPO_BASE="woof-CE"
- mkdir -p "$SVN_ROOT"
- cd "$SVN_ROOT"
- #https://stackoverflow.com/questions/7106012/download-a-single-folder-or-directory-from-a-github-repo
- BASE_URL=https://github.com
- REPO=puppylinux-woof-CE/woof-CE
- BRANCH=trunk #either "trunk" or "branches/branch"
- #Checked out revision 1.
- F_PATH=woof-code
- FOLDER=rootfs-packages
- mkdir -p "$REPO/$BRANCH/$F_PATH"
- cd $REPO/$BRANCH/$F_PATH
- #TODO add check that dir is empty then do svn command
- if [ ! -d $FOLDER ]; then
- svn export $BASE_URL/$REPO/$BRANCH/$F_PATH/$FOLDER
- fi
- cd $FOLDER
- F_NAME_DIR="$FOLDER" #Keep this for historical reasons. See: https://pastebin.com/q3J2eEVu
- TARGET_DIR="/"
- ( cd $F_NAME_DIR; find . -name '*' ) | cpio -pd "$TARGET_DIR"
Advertisement
Add Comment
Please, Sign In to add comment