changes made to distribution specific files
authorImran Zaman <imran.zaman@intel.com>
Mon, 17 Jun 2013 15:12:49 +0000 (18:12 +0300)
committerImran Zaman <imran.zaman@intel.com>
Mon, 17 Jun 2013 15:12:49 +0000 (18:12 +0300)
Makefile.am
dists/rpm/libgsignon-glib-suse.spec [moved from packaging/libgsignon-glib-suse.spec with 100% similarity]
dists/rpm/libgsignon-glib-tizen.spec [moved from packaging/libgsignon-glib-tizen.spec with 100% similarity]
tools/archive.sh [moved from packaging/archive.sh with 100% similarity]
tools/prepare-tizen.sh [new file with mode: 0755]

index 7c81d2e..b31445a 100644 (file)
@@ -36,6 +36,6 @@ DISTCLEANFILES = \
 valgrind:
        cd tests; make valgrind
 
-EXTRA_DIST = packaging
+EXTRA_DIST = dists tools
 
 .PHONY:  git-changelog-hook
similarity index 100%
rename from packaging/archive.sh
rename to tools/archive.sh
diff --git a/tools/prepare-tizen.sh b/tools/prepare-tizen.sh
new file mode 100755 (executable)
index 0000000..fe45be4
--- /dev/null
@@ -0,0 +1,22 @@
+# $1 corresponds to libgsignon-glib-<ver>.tar.gz 
+# $2 is the destination folder
+# NOTE: all the files will be extracted under destination folder (instead of destfolder/libgsignon-glib-<version>)
+
+if [ $# -ne 2 -o -z "$1" -o -z "$2" ]; then
+    echo "Invalid arguments supplied"
+    echo "Usage: ./prepare-tizen.sh libgsignon-glib-<version>.tar.gz destfolder"
+    echo "NOTE: All the files will be extracted under destfolder (instead of destfolder/libgsignon-glib-<version>)"
+    exit
+fi
+
+currdir = `pwd`;
+echo "CURR dir = $currdir"
+
+mkdir -p $2 && \
+tar -xzvf $1 -C $2 --strip-components 1 && \
+cd $2 && \
+mkdir -p packaging && \
+cd packaging && \
+cp -f ../dists/rpm/libgsignon-glib-tizen.spec libgsignon-glib.spec &&
+cp -f ../dists/rpm/libgsignon-glib-tizen.changes libgsignon-glib.changes;
+