Projects
OpenHPC:2.10:Factory
docs
_service:extract_file:get_source.sh
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:get_source.sh of Package docs
#!/usr/bin/env bash set -xe # Note: The current working directory is the component's SPEC folder # The folder that will contain the .git/ and docs/ folders DOCS_OHPC_FOLDER="docs-ohpc" # A folder that contains the full Git history of the project # Full history is needed for the usage of `git archive` command COMPLETE_OHPC_FOLDER=$(mktemp -d) cleanup() { rm -rf "${DOCS_OHPC_FOLDER}" "${COMPLETE_OHPC_FOLDER}" } trap cleanup EXIT # 1. Prepare cleanup mkdir -p "${DOCS_OHPC_FOLDER}" # 2. Fetch the full Git history so that `git describe` works later git clone https://github.com/openhpc/ohpc "${COMPLETE_OHPC_FOLDER}" cp -r "${COMPLETE_OHPC_FOLDER}/.git" "${DOCS_OHPC_FOLDER}" # 3. Copy the local docs/ cp -r ../../../../docs "${DOCS_OHPC_FOLDER}" # 4. Create docs-ohpc.tar tar cf ../SOURCES/docs-ohpc.tar "${DOCS_OHPC_FOLDER}" # 5. Cleanup cleanup
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.