Skip to content

Commit

Permalink
Add chemfiles archive creation script
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Nov 11, 2023
1 parent 28b5670 commit 97d0bb1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 0-chemfiles/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build/
gemmi/
gemmi.tar.gz

!*.patch
19 changes: 19 additions & 0 deletions 0-chemfiles/create-archive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -eu

SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)

cd "$SCRIPT_DIR"

# Create archive with only required files
rm -rf gemmi.tar.gz gemmi
mkdir gemmi

cp -r ../include gemmi/
cp ../{README.md,LICENSE.txt} gemmi

tar cf gemmi.tar gemmi/
gzip -9 -f gemmi.tar

echo "created 0-chemfiles/gemmi.tar.gz"

0 comments on commit 97d0bb1

Please sign in to comment.