Posted: Wed 22 May 2019, 01:52 Post subject:
Extract Specific Files from woof-code/rootfs-skeleton/
So one criticism that me and wander have of rootfs-skeleton in woof-CE is that everything is mixed together rather than broken into packges. I had a minimal version of rootfs-skeleton that was from mistfire's buildkit for TazPup and that I later modified for TazPup64. What I wanted to to is take only the files from the rootfs-skeleton in woofCE that are in mine and mistfire's more minimal verison of the rootfs-skeleton.
So the basic outline of this scipt is that subversion is used to download the rootfs-skeleton from woof-CE, the find command is used to see which files that we want to extract from the rootfs-skeleton and then the cpio command is used to copy the files. As a warning, this won't work with the busybox version of cpio because it doesn't support the options "-pd".
Here is the code:
mkdir -p "$SVN_REPO_BASE"
BRANCH=trunk #either "trunk" or "branches/branch"
#Checked out revision 1.
mkdir -p "$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
( cd $F_NAME_DIR; find . -name '*' ) | cpio -pd "$TARGET_DIR"
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum