Code Review
/
ric-plt
/
sdl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add PackageCloud.io publishing to CI scripts
[ric-plt/sdl.git]
/
ci
/
publish.sh
diff --git a/ci/publish.sh
b/ci/publish.sh
new file mode 100755
(executable)
index 0000000..
2115e3c
--- /dev/null
+++ b/
ci/publish.sh
@@ -0,0
+1,16
@@
+#!/bin/bash
+echo "$0: start copying packages"
+
+TARGET=/export
+if [ $# -eq 1 ]
+then
+ TARGET=$1
+fi
+
+if [ ! -d "$TARGET" ]
+then
+ echo "$0: Error: target dir $TARGET does not exist"
+ exit 1
+fi
+
+cp -v /tmp/*.rpm /tmp/*.deb "$TARGET"